Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.00 seconds.

  1. Re: Simplest hardware and code to blink a LED with PIC18F4620

    Some observations. It seems the #CONFIG and #ENDCONFIG can be in column 1 but all the other values must be indented.
    When I hit 'compile program' the code all compiles but when I check the CONFIG...
  2. Re: Simplest hardware and code to blink a LED with PIC18F4620

    Hi Richard,
    Thanks for your time in looking at this. I am using a scope so 10 mS is very visible. I use the melabs U2 USB programmer and manually set the config fuses as per the table at the top...
  3. Simplest hardware and code to blink a LED with PIC18F4620

    I have some boards I need to test before committing labour and some expensive peripherals. I have changed the thread name as the older one was getting off the track I thought.

    I have partly...
  4. Re: What is theabsolutely minimal hardware to run BLINK with a PIC18F4620?

    1k with high brightness LEDs is plenty.

    I think the problem is a missing register definition somewhere but I can't find it.

    Cheers
    BrianT
  5. Re: What is theabsolutely minimal hardware to run BLINK with a PIC18F4620?

    Thanks for the tip. I tried LATB.0 and it makes no difference.
  6. Re: What is theabsolutely minimal hardware to run BLINK with a PIC18F4620?

    The LED polarity is correct. With the MCU removed, the LED lights when 5V is applied to PortB.0
  7. What is theabsolutely minimal hardware to run BLINK with a PIC18F4620?

    I am trying to get a PIC18F4620 to blink a LED.

    I think I have enough hardware bit I cannot get it to work.



    '****************************************************************
    ' Name ...
  8. Replies
    2
    Views
    2,372

    Re: How can I avoid stack corruption

    Thanks Henrik.
    Your approach works but I call the 'SendThis' subroutine over 2000 times per loop, from different parts of the code, so I was trying to avoid all the additional "If Abort = 1 then...
  9. Replies
    2
    Views
    2,372

    How can I avoid stack corruption

    I need a fast subroutine to transmit a character, increment the CheckSum and check if a Reset "R" command has come in.
    If the "R" is found I want to immediately jump back to the start of the sending...
  10. Replies
    5
    Views
    4,590

    Re: Cannot wake from SLEEP

    I am using PBP3.0.1.4 with MCSPX 5.0.0.5

    I set the config state through the drop down [C] button that pops up whenever I do a 'compile/program'. There is no choice to set WDT_ON_2H.

    Is...
  11. Replies
    5
    Views
    4,590

    Re: Cannot wake from SLEEP

    Something else is needed though. The next code snip hangs at the SLEEP line. WDTCON = 1 turns the SoftWDT on but that does not stop the hang..
    </>
    read 47, snooze.byte0
    read 48,...
  12. Replies
    5
    Views
    4,590

    Cannot wake from SLEEP

    I cannot get my PIC18F4620 to wake from sleep. The code and the configuration settings are below. It is such a simple program but obviously I am missing some necessary register setting.

    All...
  13. Replies
    3
    Views
    3,393

    Re: How to read digital caliper.

    Search the web,
    Plenty of hits on "digital calliper protocol"

    http://www.yadro.de/digital-scale/protocol.html

    HTH
    BrianT
  14. Replies
    23
    Views
    13,947

    Re: Problems with MicroCode Studio version MSCX

    I have had this problem intermittently for the last 2 years at least. David Barker had nothing constructive to say when I queried him. I notice that if I catch the error message immediately, I can...
  15. Replies
    1
    Views
    2,150

    Migrating PBP3 and MCSPX to a new computer.

    How can I move MCSPX and PBP3 from a failing WIN XP computer that crashes every few minutes to a newer WIN 7 PC. I want to preserve my fully licensed code.

    Any pointers gratefully received.
    ...
  16. Replies
    1
    Views
    2,090

    Bit order for HSEROUT[A]

    I have scanned the PIC18F4620 datasheet and the PBP3 manual and I can't find a description of the bit order used by the HSEROUT [A] command. Does it send A.0 first or A.7? I know I could set up a...
  17. Replies
    6
    Views
    5,285

    Re: Subroutine placement - must they come first?

    My ignorance is on clear display here so please be gentle.
    I have a system of two PIC16F88 and three 18F4620 which all chatter amongst themselves over a multiwire parallel bus. Some of the code...
  18. Replies
    16
    Views
    16,005

    Re: Serin2,Serout2,Wait problem

    I have 6 PICs chattering amongst themselves in a gas mixer. The comms is cable based, not wireless, but there are similarities. I found I had to send a number of preamble characters to get the...
  19. Replies
    5
    Views
    4,785

    Re: melabs U2 programmer won't program 12F675

    Hi Ardhuru,
    Thanks for the tip but I am not sure I can use it. On a scope I can see Vpp jumps from zero to about 14 volts about 100 microseconds before switched Vdd comes up. Is that what you...
  20. Re: Have I exceeded the capability or limitations of the compiler or MPLAB?

    I had a similar error recently. It was caused by a DEBUG statement that was missing a comma.
    I had intended the line to be
    DEBUG 13, 10, "text here", 13, 10 but it got entered as
    DEBUG 13, 10,...
  21. Replies
    5
    Views
    3,688

    Re: Lookup tables for Altitude determination

    Here is a snip that uses a lookdown table with linear interpolation between key values. It has had a lot of junk snipped out but it comes from a running program using a PIC16F88.

    HTH
    Brian
    ...
  22. Replies
    5
    Views
    4,785

    Re: melabs U2 programmer won't program 12F675

    I can program fresh SMD PIC12F675 with the melabs U2 USB programmer via the melabs 8/14 pin programming adapter but that assumes loose chips before soldering to the board. I have my candle board set...
  23. Replies
    5
    Views
    4,785

    melabs U2 programmer won't program 12F675

    I have a simple LED candle simulator used in a stage musical. I built a dozen of them 3 years ago and they worked a treat. I went to build some more with newer brighter LEDs but the old code in the...
  24. Re: Argument out of range - how to find what is causing it?

    There is a simpler way.
    All the necessary information is in the .LST file. You need to search for "Argument out of range" and then scroll up many pages until you find the PBP statement that caused...
  25. Re: Argument out of range - how to find what is causing it?

    Thanks Darrel,
    My .asm file has no line numbers so I opened a new file in MCSPX then copied and pasted the .asm file to the blank MCSPX file via NotePad. This gave me line numbering and sure enough...
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4