Renesas Single-Chip Microcomputer M38C89T-ADF Manuel d'utilisateur Page 64

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 138
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 63
Rev.1.00 May 22 2012
REJ09B0566
4-44
Library Reference
4
4.2.4 35BPort Function ControlR_PFC_Modify
2)
R_PFC_Write
Synopsis
Write to a PFC register.
Prototype
bool R_PFC_Write(
Uint32_t data1,
Uint16_t data2
// PFC register selection
// Data to be written to the PFC register
);
Description
Write the value to a PFC register.
[data1]
Or use any of the following definition values to select the register.
PDL_PBCR0 Port B Control Register 0 PDL_PGCR0 Port G Control Register 0
PDL_PBCR1 Port B Control Register 1 PDL_PGCR1 Port G Control Register 1
PDL_PBCR2 Port B Control Register 2 PDL_PGCR2 Port G Control Register 2
PDL_PBCR3 Port B Control Register 3 PDL_PGCR3 Port G Control Register 3
PDL_PBCR4 Port B Control Register 4 PDL_PGCR4 Port G Control Register 4
PDL_PBCR5 Port B Control Register 5 PDL_PGCR5 Port G Control Register 5
PDL_PCCR0 Port C Control Register 0 PDL_PGCR6 Port G Control Register 6
PDL_PCCR1 Port C Control Register 1 PDL_PGCR7 Port G Control Register 7
PDL_PCCR2 Port C Control Register 2 PDL_PHCR0 Port H Control Register 0
PDL_PDCR0 Port D Control Register 0 PDL_PHCR1 Port H Control Register 1
PDL_PDCR1 Port D Control Register 1 PDL_PJCR0 Port J Control Register 0
PDL_PDCR2 Port D Control Register 2 PDL_PJCR1 Port J Control Register 1
PDL_PDCR3 Port D Control Register 3 PDL_PJCR2 Port J Control Register 2
PDL_PECR0 Port E Control Register 0 PDL_PKCR0 Port K Control Register 0
PDL_PECR1 Port E Control Register 1 PDL_PKCR1 Port K Control Register 1
PDL_PFCR0 Port F Control Register 0 PDL_PKCR2 Port K Control Register 2
PDL_PFCR1 Port F Control Register 1
PDL_PFCR2 Port F Control Register 2
PDL_PFCR3 Port F Control Register 3
[data2]
The value to be written to the register.
Return value
True if a valid register is specified; otherwise false.
Functionality
PFC registers
References
R_PFC_Read, R_PFC_Modify
Remarks
The PFC registers are modified by other driver functions. Take care to not overwrite existing settings.
Program example
/* PDL definitions */
#include r_pdl_pfc.h
/* PDL device-specific definitions */
#include r_pdl_definitions.h
void func( void )
{
/* Write data to register PFC1 */
R_PFC_Write(
1,
0xFF
);
}
Vue de la page 63
1 2 ... 59 60 61 62 63 64 65 66 67 68 69 ... 137 138

Commentaires sur ces manuels

Pas de commentaire