Search Results - MEL PICBASIC Forum


Search:

Type: Posts; User: Chris Barron; Keyword(s):

Page 1 of 4 1 2 3 4

Search: Search took 0.00 seconds.

  1. Re: 12f1822, serial RX under interrupt, echo program doesn't want to play

    Whatever.

    Darrel's answer covered it.
  2. Re: 12f1822, serial RX under interrupt, echo program doesn't want to play

    Hello Dick

    I tested the same code as above, changing the interrupt handler to the following


    asm
    myint:
    banksel PIR1
    btfss PIR1,5
    goto int_out
  3. Re: 12f1822, serial RX under interrupt, echo program doesn't want to play

    Thanks Darrel. Can't tell yoiu how close i came to putting in banksels, but then tried something else.

    Job done,

    Much appreciated, many thanks

    Chris
  4. Re: 12f1822, serial RX under interrupt, echo program doesn't want to play

    I can't remember how i resolved a similar issue like this with this chip previously, but I know I've managed it.

    I've just looked at the project again and the receiving unit never sends data...
  5. 12f1822, serial RX under interrupt, echo program doesn't want to play

    I've been trying to get some code working on the 12F1822 which works fine on the 16F690

    I can't explain why there should be a big difference in operation. I've gone through the datasheet trying to...
  6. Re: 1Hz clock using Timer3, 32.768kHz crystal and runs badly on 18F26k22

    I'm not sure that could be the cause given the unreliability of the fault. If set up incorrectly it would work consistently poorly. As it is, the 1 second epoch is always on time (suggesting that the...
  7. Re: 1Hz clock using Timer3, 32.768kHz crystal and runs badly on 18F26k22

    Good shout Henrik.

    If it is any consolation Wayne you won't be the first or the last to be stumped in that way.

    Now, if you ever find out why Timer 3 didn't behave the same as Timer 1 for me,...
  8. Re: 1Hz clock using Timer3, 32.768kHz crystal and runs badly on 18F26k22

    Hello Wayne,
    there is probably little point in using my configs, unless yoiu plan to set up your pic to mimic mine.
    Your best way top approach it is to decide which peripherals you would like to...
  9. Re: 1Hz clock using Timer3, 32.768kHz crystal and runs badly on 18F26k22

    Hi, thanks for that.
    I did get around to suspecting that and tried changing between 16-bit and 8-bit modes but there was no difference - and I couldn't explain how it would make a difference because...
  10. Re: 1Hz clock using Timer3, 32.768kHz crystal and runs badly on 18F26k22

    I have an update on this issue.
    In my ISR I have interrupts created by timer 1 and timer 3. Timer 1 is used as a one-shot timer and timer 3 is used as the low frequency 1Hz generator.

    Timer 1 and...
  11. 1Hz clock using Timer3, 32.768kHz crystal and runs badly on 18F26k22

    I have been building clocks for a while and have sometried and tested code which works great on an 18F25k22. I need to add some more features to the device which uses this so I am stepping up to the...
  12. Re: 12f1822, PBP, EEPROM and pickit 2 = hex file too large

    Good work ! Thanks for such a quick response.
    Awesome
  13. 12f1822, PBP, EEPROM and pickit 2 = hex file too large

    When I use the EEPROM keyword and load the file into pickit 2 I get an error message that the hex file is too large.
    If i comment out the eeprom statement pickit 2 accepts it without fault.
    If I...
  14. Replies
    30
    Views
    14,614

    I've just tried it and it works, so respect to...

    I've just tried it and it works, so respect to Bruce.

    With regards to the use of PBP Macros mentioned in bruce's message, where is the best place to find information about them, the manual ?
    ...
  15. Replies
    30
    Views
    14,614

    I'm looking at this again now, and wonder what...

    I'm looking at this again now, and wonder what the general opinion is of the following strategy.

    1) Make a note of the names of all of my variables which fall into assembly routines

    2) Force...
  16. Replies
    23
    Views
    9,491

    Working with the condition that you know you will...

    Working with the condition that you know you will receive 13 bytes of data in advance

    For Bytes = 0 to 12
    SerIn PORTA.0,N1200,[QUAL1,QUAL2],DATAIN[Bytes]
    Next

    Does the SerIn command also have...
  17. Replies
    23
    Views
    9,491

    Michael, I'm no expert but some of your...

    Michael, I'm no expert but some of your references to DATAIN include brackets and an array element identifier after them, others don't.
    In the serin command does picbasic know to put the received...
  18. Replies
    30
    Views
    14,614

    Thanks for the tips and information Bruce,...

    Thanks for the tips and information Bruce, Darrel.

    I'm about to take a much needed break but I'll try out the ideas when I returm

    Chris
  19. Replies
    30
    Views
    14,614

    Thanks Bruce. What i've assumed is that because...

    Thanks Bruce. What i've assumed is that because all of my vars do fit into one bank if i put them at the start of the declarations they will be placed there. The problem with the extra vars is...
  20. Replies
    30
    Views
    14,614

    That is what I was alluding to. If that is the...

    That is what I was alluding to.
    If that is the case then one workaround may be to declare a large array, called 'MY_VARS' and then declare the existing program variables to be related to that one as...
  21. Replies
    30
    Views
    14,614

    Here's a video of the device, when it works. This...

    Here's a video of the device, when it works. This is the LED version, my main work is on the VFD tube version, versions of which can be seen in my Youtube collection. The only difference between the...
  22. Replies
    30
    Views
    14,614

    This is my ISR ASM myint ...

    This is my ISR



    ASM
    myint
    btfss PIR1,0 ; timer1 o/flow
    bra Data?
    ; keypress stuff here
  23. Replies
    30
    Views
    14,614

    These are my own vars. Change_delay var...

    These are my own vars.



    Change_delay var word[6]
    Delay_set var word[6]

    Tube_previous var byte[6]
    Tube_current var byte[6]
    Tube_next var byte[6]
  24. Replies
    30
    Views
    14,614

    I could do that, but I would rather not be...

    I could do that, but I would rather not be limited to a smaller number of variables than I have ram locations for.

    I would post the code, but it's over 40k now. Take out the data tables and it's...
  25. Replies
    30
    Views
    14,614

    Just for confirmation I have reverted to a...

    Just for confirmation I have reverted to a previous interrupt routine which does not use indirect addressing, does not access the FSR's at all. The same problem is happening.

    Would someone be able...
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4