This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

reading value from register µvision3

Hello I am using µvision3 and Arm7 lpc2129 for my application. I would like to display the value, which is read from register on my computer screen.

int init_spi_read(void) /* Data is being read from SPI, MISO */
{
char read;
read = S0SPDR;
while (!(S0SPSR & 0x08)); /* check for the SPIF bit */
return (S0SPSR); /* if Bit is High, read status register*/
printf("The data read from ADC is %c", read);
}

when compile no error but when I want to read value from hyperterminal com...it doesn't display.....where am I doing error ???

Thanks....

Sridhar.

0