Category: Software
Software Version: CCES 12.0.0
I want to configure the blackfin processor 548 in gpio mode.
void Init_port()
{
*pPORTB_FER = 0x0000; // set PORTB to GPIO mode
*pPORTB_DIR_SET = PB9 | PB10 |PB12 | PB13 | PB14 ; //Set as output pin
*pPORTB_INEN = 0x0000; // enable as output
*pPORTB_CLEAR = 0x0000; // clear the port
*pPORTB_MUX = 0x0000;
{
*pPORTB_FER = 0x0000; // set PORTB to GPIO mode
*pPORTB_DIR_SET = PB9 | PB10 |PB12 | PB13 | PB14 ; //Set as output pin
*pPORTB_INEN = 0x0000; // enable as output
*pPORTB_CLEAR = 0x0000; // clear the port
*pPORTB_MUX = 0x0000;
printf("Port Setting for SPI2 is Done.....\n");
}
Is the above code is correct for gpio mode configuration setting?
And i want to generate 32 clock pulses with delay of 10ns . How can i generate it?
Thanks