Hi,
I have some questions about the example of UART test.
Code as follows:
ioport unsigned int *PCR_1=(unsigned int *)0x2c12;
#define REG_PCR1 (*PCR_1)
......
interrupt void timer0Isr(void)
{
temp = REG_PCR1;
....
I don't understand
1. How the value in the register PCR_1 connet to the value in the DR register?
2. When each time perform the program, how the value of temp varies?