Search:

Type: Posts; User: electronicsuk

Search: Search took 0.00 seconds.

  1. Re: CWrite command - must it be used in blocks?

    You're right, I think that could be helpful, and it's something I'll look into if and when I get a few moments to spare. As it stands, the article contains enough to get someone up and running, and...
  2. Re: CWrite command - must it be used in blocks?

    I'm not really sure what I could do to make it more clear - the code is all commented.
  3. Re: CWrite command - must it be used in blocks?

    I found it on an archived post from this very forum - I have no idea why it still isn't included in the manual. See http://www.protonbasic.co.uk/archive/index.php/t-70946.html
  4. Re: CWrite command - must it be used in blocks?

    Hey Harm. In your example, with writeAddress = 123, 64 is the correct value for the first CurrentAddress. There's no way it could/should ever be 123, as it always has to be a multiple of the erase...
  5. Re: CWrite command - must it be used in blocks?

    John, I created a WIKI article last week and it's still not published. Is there something else I need to do to get it online?
  6. Re: CWrite command - must it be used in blocks?

    Sure, I could do that when I have a spare moment. Is there a guide somewhere on how to write a WIKI article?
  7. Re: CWrite command - must it be used in blocks?

    Ok, so I came up with a little routine to deal with this problem, which I'll detail here in case anyone else ever has the same issue. It's not as lean as I'd like, but it does the job at a pinch. I...
  8. Re: CWrite command - must it be used in blocks?

    Thanks Tim. I'm using 18F45K20, looks like the erase block is 64 bytes with a 32 byte write block. I assume that the size and boundaries of these blocks is a result of the manufacturing and...
  9. Re: CWrite command - must it be used in blocks?

    Nope, double checked that.



    Thanks Tim, I actually came across your article when searching Google. However, you mention that "The Proton manual says nothing about the CErase or CWrite...
  10. CWrite command - must it be used in blocks?

    I'm having some trouble getting the CWrite command to work. There's a foum post from last year that mentions data must be erased and then written to memory in 64 byte blocks. I've also seen the same...
  11. Replies
    9
    Views
    2,339

    Re: Sziklai/compount BJT pair

    Thanks for all the ideas. I could potentially solder a small extra component, be it a resistor or diode, onto the board between existing pads. A pullup resistor is a simple solution, but I don't...
  12. Replies
    9
    Views
    2,339

    Sziklai/compount BJT pair

    Hi forum. I've just had some PCBs produced and realised I've made a bit of a cockup. I'm using a 2N3906 PNP transistor to switch on/off an LCD backlight. The base is switched by an IO pin on a 3.3V...
  13. Replies
    6
    Views
    2,113

    Re: Compiler and CData addresses

    Yes, I think such a routine might be the way to go. I had originally intended on using EEPROM, but there's not enough on-board, and I don't really fancy messing with an external EEPROM. The data will...
  14. Replies
    6
    Views
    2,113

    Re: Compiler and CData addresses

    Thanks Bob, but I don't think that will work for me - the messages can potentially be entered up to 160 characters long by the user, so I need to leave enough free space between CData addressed to...
  15. Replies
    6
    Views
    2,113

    Compiler and CData addresses

    Hi forum. I'm working on a project that requires me to store a number of 160 character long SMS messages. These will rarely be changed as they are messages that the PIC will send rather than receive,...
  16. Replies
    1
    Views
    4,989

    18F45K20 interrupt priority

    Hi all. I'm having an issue with interrupts on the 18F45K20, and am trying to understand the PICs behavior if low priority interrupt is generated while I'm already in the interrupt handler routine.
    ...
  17. Replies
    4
    Views
    1,842

    Re: No output from alphanumeric LCD

    Thankyou, Johns! I did actually try disabling the WDT before I realised it was a hardware issue, though in truth I never intended to have it enabled to begin with, I just forgot to clear the fuse.
  18. Replies
    4
    Views
    1,842

    Re: No output from alphanumeric LCD

    Well, would you believe it! A can or beer seemed to help me figure the issue out. What I didn't realise about these LCDs was that tieing the Vo pin to 0v provides maximum contrast. At first I had Vo...
  19. Replies
    4
    Views
    1,842

    No output from alphanumeric LCD

    Evening chaps. I've been pulling my hair out for the last two days just trying to get some (any!) text to display on a 4x20 LCD. Here is my code:

    ...
  20. Re: Write to flash memory after compile time?

    Thanks guys, I'll hit the Crownhill store now :)
  21. Write to flash memory after compile time?

    Hi, I am looking at purchasing a copy of the Proton development suite to replace my aging copy of PicBASIC Pro, as I have a project that requires quite a bit of string manipulation. One thing I would...
Results 1 to 21 of 22