Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 3 1 2 3

Search: Search took 0.02 seconds.

  1. Replies
    7
    Views
    3,964

    Re: Config & Oscon settings 16F1825

    This fixed my problem. I did not notice I had ticked 16fl1847 not 16f1847 in MeConfig . I changed "OSCCON = %11100000" to "OSCCON = %01110000" and added "DEFINE OSC 8". I am glad I figured it out...
  2. Replies
    7
    Views
    3,964

    Re: Config & Oscon settings 16F1825

    I am trying to use a 16f1847 and can not get it to blink an led I am sure this is a config problem but just can't make it work. this is my config and blink program below.

    Thanks!

    ...
  3. Replies
    8
    Views
    4,673

    Re: How do I use 10 bit A/D on 8 bit Pic? 12F675

    I got it fixed it was a hardware issue. Thank you!
  4. Replies
    8
    Views
    4,673

    Re: How do I use 10 bit A/D on 8 bit Pic? 12F675

    Can anyone tell me what I am doing wrong? This code just returns " 0 0 " with 3 volts on gpio.0

    DEFINE ADC_BITS 10
    DEFINE ADC_CLOCK 3
    DEFINE ADC_SAMPLEUS 50

    CMCON = 7
    ANSEL = %00000001...
  5. Replies
    4
    Views
    3,573

    Re: Code doesn't work on 16F648A

    Sorry I got it because it was a 10mhz oscillator I needed to use "cfg = _HS_OSC" I found the answer in this pdf.
    http://ww1.microchip.com/downloads/en/AppNotes/00849a.pdf
  6. Replies
    4
    Views
    3,573

    Re: Code doesn't work on 16F648A

    I am having problems using an external oscillator on a 16f648a. I can use the internal oscillator with no problem however when I try to use an external ceramic oscillator the code does not run. On...
  7. Replies
    13
    Views
    5,967

    Re: Input problems with 12F629?

    I just found my problem. It was these two lines

    SYMBOL RTOUT = GPIO.4

    SYMBOL PEIZO = GPIO.5

    I had changed my board on the last run and forgot to change the pin numbers in the code. The...
  8. Replies
    13
    Views
    5,967

    Re: Input problems with 12F629?

    I have read this thread several times and looked at the datasheet several time as well. I am having problems with code that has worked fine in the past and suddenly I can not make GPIO.0 and GPIO.3...
  9. Replies
    42
    Views
    12,600

    Re: 18F2550 and Blink Led

    So this means all of the wpu are turned off on portb if any pin is a output on portb? I guess I thought because the data sheet said "The weak pull-up is" not "The weak pull-ups are turned off it...
  10. Replies
    42
    Views
    12,600

    Re: 18F2550 and Blink Led

    What I was attempting to say with that comment was that by using TRISB = %00001111 after the line containing INTCON2.7 = 0 you would set the bottom 4 bits to outputs causing those 4 bits to no...
  11. Replies
    42
    Views
    12,600

    Re: 18F2550 and Blink Led

    Is this close?
    INTCON2 = %00000000 ' makes all of portb have WPU ? INTCON2<7> 'page 116
    TRISB = %00001111 'B. 0:3 are now outputs WPU is now off?
  12. Replies
    42
    Views
    12,600

    Re: 18F2550 and Blink Led

    Thank you, I will make an order on Monday. I should have asked before I started this project.
    I have tried to use the pic comparison page with some luck...
  13. Replies
    42
    Views
    12,600

    Re: 18F2550 and Blink Led

    I was not aware of the 18F25K22. I should have asked for advice before I made the change. Sometimes selecting a new device can be very confusing. I will look at the data sheet for the 18F25K22 , do...
  14. Replies
    42
    Views
    12,600

    Re: 18F2550 and Blink Led

    Thank you for your reply. You are right I am trying to use the internal oscillator and have no idea how to setup the oscillator section. I do not plan to use any of the special features “usb ” of...
  15. Replies
    42
    Views
    12,600

    Re: 18F2550 and Blink Led

    No blinky what am I doing wrong? The below config come from meconfig.exe.


    ;----[18F2550 Hardware Configuration]-------------------------------------------
    #CONFIG
    CONFIG PLLDIV = 5 ...
  16. Replies
    47
    Views
    35,074

    Re: Interfacing with Arduino I2C LCD

    Thank You, I will try your code. I went another direction but I will order another display just to try this. Thanks again!
  17. Replies
    47
    Views
    35,074

    Re: Interfacing with Arduino I2C LCD

    PCF8574AT is the number on my IC.
  18. Replies
    47
    Views
    35,074

    Re: Interfacing with Arduino I2C LCD

    This is the init command from my working Arduino sketch "LiquidCrystal_I2C lcd(0x3F, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE)" all three jumpers are open A0:2.

    Thanks!
  19. Replies
    47
    Views
    35,074

    Re: Interfacing with Arduino I2C LCD

    I see on the data sheet for the PCF8574 you are right I used the Arduino i2c address finder to get the address. I have tried it using the 4E address and get nothing however with the 7E I do get some...
  20. Replies
    47
    Views
    35,074

    Re: Interfacing with Arduino I2C LCD

    Richard thank you for your help.

    I have read most of the threads but will read them again. I will find and download both version of the include. On Arduino this is the Initialization for my...
  21. Replies
    47
    Views
    35,074

    Re: Interfacing with Arduino I2C LCD

    Sorry, I should have said 16F628A. I did set my pins as digital? I want to display data from my program but that seems far away at this point?? I cut the program down to the below lines and I get a...
  22. Replies
    47
    Views
    35,074

    Re: Interfacing with Arduino I2C LCD

    I did delete these two lines

    ARRAYWRITE LCD_Buff,[" LCD PCF8574"] : LCD_WriteBuff

    ARRAYWRITE LCD_Buff,[$FE,$C0,"Count = ",DEC LoopCount," "] : LCD_WriteBuff

    and Change this line
    ...
  23. Replies
    47
    Views
    35,074

    Re: Interfacing with Arduino I2C LCD

    I am trying to make this code work with a 16F629A and all I get is a blinking back light with the modified code below.I am probably missing something simple?

    Thanks,

    ; Filename :...
  24. Replies
    8
    Views
    3,915

    Re: Is this a valid statement?

    Thank you, that fixes my problem.
  25. Replies
    8
    Views
    3,915

    Re: Is this a valid statement?

    Can anyone tell me why this does not work:

    if var8 = 1 then goto beper : J = 3

    The if statement works but J does not = 3 ?
Results 1 to 25 of 57
Page 1 of 3 1 2 3