??? 06/09/08 19:49 Read: times |
#155628 - Hardware I2C on 8051 NXP....I'm stuck |
Hey guys,
I'm working on a project that just went from software I2C to hardware I2C. I'm using the 89LPC936 and to this point I've got it all together in a test project......I'm stumbling on some issues of getting my data to transmit from the master to slave and with the data I'm hardcoding into the main.c just to see if the data is getting transmitted correctly. basically I want to send 3 to 4 bytes from a master 936 to a slave 924 (same nxp family 8051 with I2C hardware). I've used code architect to create the framework but I can't seem to get the output stream right from the 8051. I've used the tools for the ADC, watchdog, and the serial UART and it made perfect sense......this not so much.... I can see it is sending a start but for some reason the only thing I'm getting back is NACK. I've downloaded the esacademy I2C example but it's in asm and it works in the simulator as it should.....so that just tells me I'm being stupid somewhere. I've attached the link to the entire project from my personal website. If you have Keil and can help, I'd be very grateful. I spoke with esacademy on the phone and he asked if I had EA=1 and I did, so I'm not sure what I'm doing wrong Thanks http://www.kittmaster.com/test.zip |
Topic | Author | Date |
Hardware I2C on 8051 NXP....I'm stuck | 01/01/70 00:00 | |
divide and conquer | 01/01/70 00:00 | |
where would I find that? | 01/01/70 00:00 | |
what is a "tut file" ?? | 01/01/70 00:00 | |
FIle is in the link in first post | 01/01/70 00:00 | |
I would NEVER NEVER NEVER ..... | 01/01/70 00:00 | |
Well that's not gonna happen.... | 01/01/70 00:00 | |
looks to me as staright CodeArchitect | 01/01/70 00:00 | |
accidential double, ignore | 01/01/70 00:00 | |
Programming is not guesswork | 01/01/70 00:00 | |
blunt is fine.....and I'll say it again. | 01/01/70 00:00 | |
Forum posts and reality... | 01/01/70 00:00 | |
you will break a leg | 01/01/70 00:00 | |
does it have to be C?![]() | 01/01/70 00:00 |