Someone HELP!!!!
For the last month or so I have been trying to get a 18F452 PIC to transmit several bytes of information every .5 of a second to a
16F877. The 18F452 is set up as a master and the 16F877 is setup as a slave. I have used an osciliscope on the outputs of the 18F452 and I am certain that I am getting the correct start bit and address programmed into the 16F877. For some reason the 16f877 never seems to want to recognise the start bits. I have gone through my programming numerous times now and connot see the problem. All my interrupts are set, I2C is configured correctly and my ports are configured. I have no idea what the problem could be, I thought it might be the bus but I am sure that is not the case. I do pull-up both SDA and SCK with +5v. It is really starting to bug me, as i have never had so much trouble with microcontrollers before that i haven''t been able to figure out. If anyone out there can give me some pointers it would be of great help. Even some sites that i haven't been able to find yet would be nice to, or maybe even some code that works. Well hope someone has had the same trouble as myself.Robert