naderus
Member level 1
if i want to make a 8 bit fast parrallel port in PIOA8 ~ PIO15 that
writing and reading data in one instraction like AVR,LPC200,TMS470 ...
how can i do that?
i know i must write in PIO_ODSR reg and for get access only in pin 8 ~15
must shift the data << 8 & OR it with PIO_ODSR reg but it take two more
instraction more than a simple write on 8 bit bus. is there any way to do
that like LPC2000.they have byte access to 32 bit port for getting up speed.
unsigned char data;
/*
...
...
...
*/
// writing on DAC that connect on pin 8 ~ 15
// one shift,getting a word from RAM,one OR
// totally about 3 instraction for simple
// write data in 8 bit bus that have every low performance
PIO_ODSR |= (unsigned int)(data << 8);
writing and reading data in one instraction like AVR,LPC200,TMS470 ...
how can i do that?
i know i must write in PIO_ODSR reg and for get access only in pin 8 ~15
must shift the data << 8 & OR it with PIO_ODSR reg but it take two more
instraction more than a simple write on 8 bit bus. is there any way to do
that like LPC2000.they have byte access to 32 bit port for getting up speed.
unsigned char data;
/*
...
...
...
*/
// writing on DAC that connect on pin 8 ~ 15
// one shift,getting a word from RAM,one OR
// totally about 3 instraction for simple
// write data in 8 bit bus that have every low performance
PIO_ODSR |= (unsigned int)(data << 8);