Jump to content

Netlab

EstablishedMember
  • Content Count

    5
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Netlab

  • Rank
    Newbrie
  1. hmmm, I see where you're coming from. I was under the impression that the I2C interrupt flag would occur whenever data was received. But I think you're right it doesn't make sense for it to be there. I'll get rid of the line and see if I have any more luck. Thanks for the help, I guess I just didn't look at the code logically since I've been staring at it for days Mike
  2. Doesn't anyone have any ideas? I'm no closer to solving this problem. Please help
  3. Hi I am having trouble getting my 16f819 to read data from an existing I2C bus. I'm confident that my SSP setup is correct, but when I try to read the data being transmitted the PIC seems to crash/hang. The master on the I2C bus is only transmitting data. There is no facility for feedback to the master (apart from the I2C ack signals). Am I making any obvious mistakes? My code is included below ////////////////////////////////////////////////////////////////////////////////////////////// // Michael Eaton, Adrian Brown and John Duffy // //////////////////////////
  4. WOW!! Not really sure why this works....but it is working beautifully. I just added the _LVP_OFF like you say and its all good. I'm using a programmer supplied by a 9V plug pack. Does this make sense to use _LVP_OFF? Thanks a lot Reynard.
  5. Hi, I am currently trying to get a PIC16f819 to flash two LEDs on and off, with the internal oscilator set at 8MHz. I'm using the code at the bottom of this post, the original code found at the link below - which uses an external oscilator set at 4MHz: http://forum.sourceboost.com/index.php?sho...mp;hl=beginner), However, it is not working properly, some random events are happening. One LED will come on, then if I touch any metal part of the circuit both LEDS start to flash correctly. I've made my own circuit board to eliminate the option of a dodgey
×
×
  • Create New...