PIC16F88 senior design


Closed Thread
Results 1 to 40 of 72

Hybrid View

  1. #1
    Join Date
    Apr 2007
    Posts
    21

    Default

    I've fixed the external oscilator problem, changing out the caps with lower valued ones worked. Now to work on getting the LCD to time corectly output the data. Just to make sure 20MHz should be able to handle a 9600 baude rate without any trouble shouldn't it? Also is there and extra code I need to add to ensure stable operation outside of '@ DEVICE PIC16F88, HS_OSC' and DEFINE 20?

  2. #2
    skimask's Avatar
    skimask Guest

    Default

    Quote Originally Posted by AlaskanEE View Post
    I've fixed the external oscilator problem, changing out the caps with lower valued ones worked. Now to work on getting the LCD to time corectly output the data. Just to make sure 20MHz should be able to handle a 9600 baude rate without any trouble shouldn't it? Also is there and extra code I need to add to ensure stable operation outside of '@ DEVICE PIC16F88, HS_OSC' and DEFINE 20?
    20mhz is plenty high to use with 9600 baud (Appendix A of the PBP manual).
    DEFINE 20 is not the correct usage for that DEFINE (Section 4.16)

  3. #3
    Join Date
    Apr 2007
    Posts
    21

    Default

    I know I forgot to put OSC between DEFINE and 20. Anyways here's the code I used trying to get an alphabet output to go through using the 20 MHz external oscillator. the LCD showed a new character every .25 seconds but they were all random characters. Seems like a timing issue to me.

  4. #4
    Join Date
    Apr 2007
    Posts
    21

    Default

    ohh I also tried the original code that skimask used working with the internal oscilator, it gave the same result, successive random symbols and leters.

  5. #5
    skimask's Avatar
    skimask Guest

    Default

    Quote Originally Posted by AlaskanEE View Post
    ohh I also tried the original code that skimask used working with the internal oscilator, it gave the same result, successive random symbols and leters.
    Again, generally, random symbols and characters usually mean the baud rate is just a tad too far off. And I know you're not this far, but 'generally speaking' (not a hard fact, but usually accuracte), if the baud rate is a bit slow, you get framing errors, too fast gives overrun errors.

  6. #6
    Join Date
    Apr 2007
    Posts
    21

    Default

    is it possible for me to use a baude rate other than 2400bps or 9600bps?

  7. #7
    skimask's Avatar
    skimask Guest

    Default

    Quote Originally Posted by AlaskanEE View Post
    is it possible for me to use a baude rate other than 2400bps or 9600bps?
    Here's a program for you:

    MAIN:
    LCDOUT "See the manual as noted in earlier posts."
    Goto Main

Similar Threads

  1. RX TX modules - intermitent communication
    By ruijc in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 11th June 2009, 00:13
  2. pic16f88 & voltage
    By rdxbam in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 17th February 2009, 09:14
  3. Ghange code from PIC16F877A to PIC16F88
    By savnik in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 12th March 2008, 16:09
  4. Replies: 8
    Last Post: - 7th December 2006, 15:42
  5. PIC16F88 problem with TOGGLE command?
    By russman613 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 17th September 2006, 23:31

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts