Search Results - MEL PICBASIC Forum


Search:

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

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    2,817

    Re: 18F45K22 timer/counter

    Damn, I knew it was something simple but my eyes kept going over it!

    Now that it works time to complicate it. Thank you very much!

    Take care, stay safe and talk to you soon
  2. Replies
    2
    Views
    2,817

    18F45K22 timer/counter

    Good evening all.
    I'm trying to enable timer 3 and timer 5 as counters, and clearly I have something wrong. I can't write to them to zero them out, and they don't count. Reading the datasheet as...
  3. Replies
    11
    Views
    6,301

    Re: Displaying a percentage

    X = 4096 * 100
    Percent = div32 value
    Lcdout (dec2 percent)
  4. Re: MikroE clicker, 18f47J53, serout 2 to serial LCD issues

    Thanks Henrik, now it makes sense. When I got it to operate correctly under the internal oscillator, by setting the correct values for the OSCCON register, telling it to use the 8 mhz internal clock,...
  5. Re: MikroE clicker, 18f47J53, serout 2 to serial LCD issues

    OK Henrik - you were right. I changed PLLDIV to 4, and set OSC = 48, and it works.

    But now I have to ask why it didn't work when I tried OSC = HS

    ; CONFIG CFGPLLEN = OFF ; PLL...
  6. Re: MikroE clicker, 18f47J53, serout 2 to serial LCD issues

    And yes, I'm using the bootloader.

    Thanks much - I'll keep reading the datasheet, see what I'm missing.

    Take care

    Alec
  7. Re: MikroE clicker, 18f47J53, serout 2 to serial LCD issues

    Thanks Henrik
    The default config file has the PLL disabled. I did get it running on the internal oscillator, so yes, its a configuration issue. More time with the datasheet I guess...
  8. MikroE clicker, 18f47J53, serout 2 to serial LCD issues

    Hello all
    What I suspect is a simple problem is driving me nuts.
    I got a MikroE clicker1 board, it has a 18F47J53 PIC on it. Doesn't have enough output pins in one port for an LCD so I'm using a...
  9. Replies
    2
    Views
    4,169

    Re: reading si7021 humy_temp sensor

    This is a program I wrote a while back to read a barometer and a humidity/temperature sensor

    Good luck



    '****************************************************************
    '* Name :...
  10. Replies
    4
    Views
    5,255

    Re: ADXL345 Accelerometer using I2C

    There was a recent thread that explained that you have to shift the seven bit address left, and let PBP insert bit 0 for the I2Cread or I2C write command. Using both a barometer chip and a humidity...
  11. Replies
    3
    Views
    3,553

    Re: 4-20mA using SPI Interface

    Hi

    This is some code I wrote to use that board as a basic loop calibrator. Worked OK for me.

    Take care

    Alec


    '****************************************************************
  12. Replies
    2
    Views
    2,967

    Re: ADC problems with a 16F1826 chip

    Damn!!!

    Thanks Darrell - ebeer to you:biggrin:
  13. Replies
    2
    Views
    2,967

    ADC problems with a 16F1826 chip

    Hello all
    I'm trying to use a new chip to me, an 16f1826. I liked the idea of the 4.086 internal voltage reference. I wrote the test code below, trying to follow the datasheet. Unlike others, I've...
  14. Replies
    11
    Views
    9,553

    Re: Interrupts question

    BTW - I'm using a PS205-1 AC input photocoupler. Works great with a 10k 1 watt resistor in the input.
    Alec
  15. Replies
    11
    Views
    9,553

    Re: Interrupts question

    Hi All, and apologies for not getting back to you all sooner (damned work!!)
    I hate to admit this, but a wire had gotten disconnected on my bread board - amazing how much better a PIC works when it...
  16. Replies
    11
    Views
    9,553

    Interrupts question

    Hi all
    I've been trying to control a triac using an interrupt on RB0 and going to an interrupt handler - been basing it on the discussion surrounding Mr E's lamp dimmer code.

    ...
  17. Replies
    8
    Views
    4,638

    Well, I got it working the essentially the way I...

    Well, I got it working the essentially the way I wanted it to.
    Holding the up button for a few seconds turns the power on, holding the down button turns the power off.
    Thanks for the help and links...
  18. Replies
    8
    Views
    4,638

    Hi Joe Thanks for the links - I followed some of...

    Hi Joe
    Thanks for the links - I followed some of the threads and Melanie's explanation that Darrel refers to is easiest for my simple brain to wrap around...
    But, I have to resist the temptation to...
  19. Replies
    8
    Views
    4,638

    Thanks Joe - I'll try it when get home tonight ...

    Thanks Joe - I'll try it when get home tonight

    "LED var byte[10] '10 bits - 1 for each led segment
    LED0 var PortB.0
    LED1 var PortB.1
    LED2 var PortB.2
    LED3 var PortB.4
    LED4 var...
  20. Replies
    8
    Views
    4,638

    Programming freezing

    Hello all
    I have what should be a simple program to control a car heater motor - two pushbuttons to increment or decrement a counter and the counter becomes the duty cycle for a PWM output. For some...
  21. Replies
    11
    Views
    7,232

    Hi Polymer try this - I used a 12F683 Take care...

    Hi Polymer
    try this - I used a 12F683
    Take care
    Alec


    '****************************************************************
    '* Name : fan controller_forum *
    '* Author :...
  22. Thread: assembly errors

    by alec
    Replies
    3
    Views
    2,891

    Thanks Arch I dumped the .asm file into excel to...

    Thanks Arch
    I dumped the .asm file into excel to get line numbers, and line 96 was blank, right after @ device pic16f628a, INTRC_OSC_NOCLKOUT. I'd had an exrta comma in the file - took that out and...
  23. Thread: assembly errors

    by alec
    Replies
    3
    Views
    2,891

    assembly errors

    Hello all

    I'm working on a way to monitor a quadrature encoder feeding back to a VFD to independantly verify that the drive and motor have decelerated when commanded to do so. My program, below,...
  24. Thread: LCD Control

    by alec
    Replies
    28
    Views
    16,438

    hi boboco Try adding a 10ms pause between the...

    hi boboco

    Try adding a 10ms pause between the two LCDOUT statements. It's the only way I've been able to display multiple lines.
Results 1 to 24 of 24