Remove Text Formatting
Loading...

Search:

Type: Posts; User: LEDave; Keyword(s):

Page 1 of 4 1 2 3 4

Search: Search took 0.06 seconds.

  1. Replies
    928
    Views
    88,866

    Re: 12f675_fuse_about_to_blow!

    Really pleased to say the project took a giant leap forward tonight. Have re-written some of the code to work with pull-down resistor now 0v = off, 5v = on.

    Tap a wire +5v to GPIO.0 ten times,...
  2. Replies
    928
    Views
    88,866

    Re: 12f675_fuse_about_to_blow!

    Hi mackrackit.

    Here's the Tx and Rx code as is stands. The Tx program now transmits a data WORD on button press, not just the button press itself.

    Tx:


    @ __config _INTRC_OSC_NOCLKOUT &...
  3. Replies
    928
    Views
    88,866

    Re: 12f675_fuse_about_to_blow!

    Will do mackrackit.



    Hi Demon. I hear what you're saying, makes good sense. I remember Henrik telling me that it didn't matter whether you sent Highbyte or Lowbyte first, your way kind of...
  4. Replies
    928
    Views
    88,866

    Re: 12f675_fuse_about_to_blow!

    Just had a breakthrough with the project:)

    Having modified Bruce's code to make the timing loop run & transmit. Tx 'consistancy' was a problem. The data was only recieved about 3 in 5 times. So...
  5. Replies
    928
    Views
    88,866

    Re: 12f675_fuse_about_to_blow!

    It did / does. Bruce's code for the Tx - Rx on button press works a treat, it never misses a beat. The problem appears when we try and add in a time delay loop.

    Here's Bruce's original Rx code (a...
  6. Replies
    928
    Views
    88,866

    Re: 12f675_fuse_about_to_blow!

    Hi Bert

    Well no the Tx side still has work to be done. The delay loop problem has / had to be overcome to get the project code to do what I want it to. The GPIO.3 / 4 pins will need to be set as...
  7. Replies
    928
    Views
    88,866

    Re: 12f675_fuse_about_to_blow!

    I think I've sent everyone on a wild Goose chase (sorry):o.

    Mackrackit's Tx code was working fine all along.

    I now think It's the Rx program that holds the key. The reason I think this is...
  8. Replies
    928
    Views
    88,866

    Re: 12f675_fuse_about_to_blow!

    Hi Demon

    I hear what you're saying. By the time this project is finished a lot of changes will have been made to the set-up.

    This is my first excursion into RF, with Tx - Rx programs that...
  9. Replies
    928
    Views
    88,866

    Re: 12f675_fuse_about_to_blow!

    Hi mackrackit / All

    In Bruce's oringinal code, the rfpic (if no buttons are pressed) goes to SLEEP until a button is pressed then Encodes & Tx's straight away.

    It seemed to me the data Tx is...
  10. Replies
    928
    Views
    88,866

    Re: 12f675_fuse_about_to_blow!

    Two versions to look at really Demon. I've posted two, it might help you see 'something' because although very similar, what they both do is subtley different things.

    The first one does this on...
  11. Replies
    928
    Views
    88,866

    Re: 12f675_fuse_about_to_blow!

    I'm using a power supply set at 4.66v.

    For some reason my attachments are appearing here 'inline' rather than at the page bottom, sorry.

    The comment about dataask going high caught my eye....
  12. Replies
    928
    Views
    88,866

    Re: 12f675_fuse_about_to_blow!

    I moved the code.

    What happens is:

    1/ If a button is pressed and released RFEN briefly flashes after the 5sec delay (no data is Tx'd).

    2/ If a button is continually pressed, nothing...
  13. Replies
    928
    Views
    88,866

    Re: 12f675_fuse_about_to_blow!

    Hi cncmachineguy, I suspect timing has a lot to do with it (although I don't kow enough to say or point to why).

    Plenty of head scratching going on here.



    Yes, pauses for too long are...
  14. Replies
    928
    Views
    88,866

    Re: 12f675_fuse_about_to_blow!

    Hi mackrackit

    I reloaded your code and the rfpic worked exactly as before, namely:

    The RFEN led lit for five seconds immediately either button was pressed but nothing was transmitted.

    ...
  15. Replies
    928
    Views
    88,866

    Re: 12f675_fuse_about_to_blow!

    Made a mistake, please ignore this post,Dave.
  16. Replies
    928
    Views
    88,866

    Re: 12f675_fuse_about_to_blow!

    A breakthrough, I think....

    I moved the delay loop to run right after the IOC from @SLEEP. So what happens now is if GPIO.3/4 are held down, after 5sec delay data is Tx'd. If GPIO.3/4 are pressed...
  17. Replies
    928
    Views
    88,866

    Re: 12f675_fuse_about_to_blow!

    Hi mackrackit



    I did and I am still hoping to get it working: Post #893 above has ON INTERRUPT -DISABLE-ENABLE-RESUME in the code.

    Thanks for the TX program, I had to change:

    ...
  18. Replies
    928
    Views
    88,866

    Re: 12f675_fuse_about_to_blow!

    5485



    Hi Joe, from the data sheet (pasted above) so yes IOC on pins I need.

    I've changed BAUD to:


    BAUD = 16780 ' Set baud rate here
  19. Replies
    928
    Views
    88,866

    Re: 12f675_fuse_about_to_blow!

    I'm having a problem getting the rfpic transmitter to Tx when I want it to. I've set up an ON INTERRUPT with DISABLE - RESUME - ENABLE and have the INTCON & IOC set at:


    INTCON = %00001000 & IOC...
  20. Replies
    928
    Views
    88,866

    Re: 12f675_fuse_about_to_blow!

    Have spent several interesting but largely fruitless hours trying to make some progress with the program.

    However if I jump passed the COUNTER / WDT routine the TX & RX work fine which is good to...
  21. Replies
    928
    Views
    88,866

    Re: 12f675_fuse_about_to_blow!

    Bert

    As an aside to the problem, earlier on in the program we have:


    Main:
    ' Read port to clear missmatch, if with no buttons pressed, then
    ' clear int-on-change flag & snooze...
  22. Replies
    928
    Views
    88,866

    Re: 12f675_fuse_about_to_blow!

    Hi Bert

    Thanks for your input and welcome to the thread. I was heading towards the CLRWDT after reading this (quite an interesting website):
    ...
  23. Replies
    928
    Views
    88,866

    Re: 12f675_fuse_about_to_blow!

    Hi mackrackit,

    I've made the changes and the Transmitter lights the it's reference led about once every nine seconds but doesn't transmit at all (doesn't seem to get that far).

    I still can't...
  24. Replies
    928
    Views
    88,866

    Re: 12f675_fuse_about_to_blow!

    If I press and hold down push button GP4 on the transmitter, the receiver flashes the led continually. I would have thought / was expecting that when the push button on GPIO.4 was pressed and held...
  25. Replies
    928
    Views
    88,866

    Re: 12f675_fuse_about_to_blow!

    It TX's straight away and the led on the Pickit1 (receiver) flashes three times (as intended). There is no 5 sec delay from the timing loop though.

    It's as if the timing loop COUNT is just being...
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4