Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.00 seconds.

  1. Thread: Loop issues

    by jmgelba
    Replies
    18
    Views
    5,445

    Re: Loop issues

    Wow Richard, thanks for that! I guess I was way off. I used Melanie's Olympic Timer as the basis for my code and she included some of the things that you have advised against such as adding the...
  2. Thread: Loop issues

    by jmgelba
    Replies
    18
    Views
    5,445

    Re: Loop issues

    Ioannis, thank you for your reply. I do actually see a pulse and have been using it to measure changes I've been making, although it is always fairly constant at about 1ms pulse to pulse. I'll assume...
  3. Thread: Loop issues

    by jmgelba
    Replies
    18
    Views
    5,445

    Re: Loop issues

    OSCCON = %01110011
    DEFINE OSC 8
    DEFINE WRITE_INT 1
    Include "modedefs.bas"

    SSW var PortA.7
    redport var PortB.5
    blueport var PortB.7
    greenport var PortB.6
    enable1 var PortB.2
  4. Thread: Loop issues

    by jmgelba
    Replies
    18
    Views
    5,445

    Re: Loop issues

    Here's the entire code.
    Redport = 0 was a typo and should have been = 1. The loop worked once I disabled the external oscillator requirements for timer1.
    18F1320 using internal 8MHz oscillator...
  5. Thread: Loop issues

    by jmgelba
    Replies
    18
    Views
    5,445

    Loop issues

    I have a very simple test loop that only partly functions and I cannot figure out why.


    main:
    if PortB.0 = 0 then
    if PortB.1 = 1 then
    if PortB.4 = 1 then
    runtime = 60
    endif
    endif
  6. Replies
    11
    Views
    3,720

    Re: DT-ints and elapsed timer compilation errors.

    So I got a copy of PBP3, MCS4, MPLABX IDE 5.50, and yeah, same result. Plus a whole bunch of other issues such as programmer issues (fixed) makefile issues (not fixed) MCS not connecting to MPLAB...
  7. Replies
    11
    Views
    3,720

    Re: DT-ints and elapsed timer compilation errors.

    I haven't touched a pic in years. I really don't do much with firmware at all. I'm completely out of date, have no skills, and forgot all the stuff I learnt a decade ago. All I want to do is run a...
  8. Replies
    11
    Views
    3,720

    Re: DT-ints and elapsed timer compilation errors.

    There has to be something else going on too. I'm using software that was used when these interrupts where first written. I did just upgrade to the free 4.0.0.0 version of MCS+ so I'll try that. No...
  9. Replies
    11
    Views
    3,720

    Re: DT-ints and elapsed timer compilation errors.

    I'm using old stuff :biggrin: I don't see an option to enable or disable generation of COFF files in this super old version of MCS+. 3.0.0.1 I think, MPLAB is 8.20a, mpasm is 5.30, and pbp is 2.60a.
  10. Replies
    11
    Views
    3,720

    Re: DT-ints and elapsed timer compilation errors.

    Oh wow, thanks! I didn't realize it was so tabulation sensitive. This removed a few errors but still a couple left to clear. I'm thinking of commenting out that area of the include as it pertains to...
  11. Replies
    11
    Views
    3,720

    DT-ints and elapsed timer compilation errors.

    Hi Guys,

    I'm having some compiler issues when trying to create a program around DT's interrupts and elapsed timer. In the below code, if I comment out
    @ INT_ENABLE TMR1_INT ; Enable Timer 1...
  12. Replies
    1
    Views
    2,336

    Use any pin as tmr input?

    Is there a way to use any pin as an input to the timers? I need to add a feature to a currently in production design that reads 2 frequencies but the CCP1 and CCP2 pins are currently used for other...
  13. Replies
    4
    Views
    4,190

    Production programming

    For the first time I have to provide firmware for an assembly company to program boards on an assembly line at around 20,000 units a year. I've only ever programmed at low volume which I do manually...
  14. Replies
    3
    Views
    3,558

    Good way to divide 10bit adc by 4?

    Looking to convert a 10 bit 0 - 1023 adc reading to 0 - 255. I've tried dividing by 4, dividing by 2 and putting into a byte then dividing that byte by 2 but I keep getting errors. Is there a better...
  15. Replies
    4
    Views
    3,460

    Re: MCP41xxx Digital pot issue

    The mode is correct but I did miss the analog setting. Thank you.
  16. Replies
    4
    Views
    3,460

    Re: MCP41xxx Digital pot issue

    PIC 18F2550

    There is data from each pin so the pins are correctly set to digital outputs. The clock does idle high and goes low for each bit. I'm stumped. I've followed code I've used before that...
  17. Replies
    4
    Views
    3,460

    MCP41xxx Digital pot issue

    I cant seem to get a MCP41100 single digital pot to work. The wiper is always at mid point. I've tried many different things to get this working but just no luck. Can anyone see what the issue might...
  18. Replies
    11
    Views
    6,327

    Re: 18F4550 issue with simple program.

    I cant seem to get some of the ADC readings to write to EEPROM. Channels 0 and 1 work perfectly the others write anything. Any idea whats going on? I think all the ports are set correctly.

    Define...
  19. Replies
    11
    Views
    6,327

    Re: 18F4550 issue with simple program.

    Turns out this was a MPASM issue. Once I had that resolved the program worked.
  20. Replies
    11
    Views
    6,327

    Re: 18F4550 issue with simple program.

    No. Does the PicKit 3 programmer hold it high or low when powering the target board?

    I do have it disabled in the config bits.
  21. Replies
    11
    Views
    6,327

    Re: 18F4550 issue with simple program.

    Yes you're right. I hadnt changed the comment but the setting is correct for what I need. Still, It is not running. I've noticed that the code is being loaded into the end of the program space and...
  22. Replies
    11
    Views
    6,327

    18F4550 issue with simple program.

    I'm having a problem getting a really simple program to run on an 18F4550. It just a couple of blinky LED's to verify the PIC is alive. I can program it fine and read back from the device but cannot...
  23. Replies
    2
    Views
    2,618

    Using all ADC channels, 18F4550

    I've read the datasheet and didn't see any issues in using all 13 ADC channels at the same time, but are there any gotchyas out there I'm missing? I need to cycle through them all, read the values...
  24. Replies
    2
    Views
    2,120

    Re: Hex value of ASCII character back to text.

    As simple as that, eh? lol
  25. Replies
    2
    Views
    2,120

    Hex value of ASCII character back to text.

    I am trying to take the hex value of an ASCII character stored in EEPROM , convert it back to a text character and send it to a device on the PIC serial port using serout or serout2.

    So lets say I...
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4