Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Reading value of register

2004-12-07 by Sridhar gadda

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. 


		
---------------------------------
Do you Yahoo!?
 The all-new My Yahoo! � Get yours free!    

[Non-text portions of this message have been removed]

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.