??? 12/06/06 13:51 Read: times Msg Score: +2 +2 Good Answer/Helpful |
#129075 - Tested?! Responding to: ???'s previous message |
Priyanka Gupta said:
According to my schematic i have tested my hardware , all connections are connected in a right way How have you verified that? With a continuity tester? With a scope? or what? and i also told here my program is working with taking datatype int but it will not work with datatype "char" , so for that i want help why it should occurs ?? You said, when you use unsigned char xdata buff[BUFF_SIZE] = {'P','R','I','Y','A','N','K','A'};you get RRYYNNAA And, you said, when you use unsigned int xdata buff[BUFF_SIZE] = {'P','R','I','Y','A','N','K','A'};};you get PRIYANKA Think about it: Draw how the data of those two arrays actually appears in your RAM; Then ask yourself, "what happens if the A0 address line is stuck at a constant '1'?" (ie, whatever address the 8051 thinks it's trying to access, the RAM always uses A0=1) You should also think about what would happen if the A0 address line was stuck at a constant '0'... Did you read that article I posted earlier about common memory system faults? |