pic telemetry system


Closed Thread
Results 1 to 24 of 24

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default

    Sorry mell, i meant with the software UART... my bad...

    my JDM programmer arived today... still waiting on my pair of 16F877's

    I can't help but wonder why mplab doesn't have JDM programmer in the list... i'm guessin it's a sales thing...

    I got my test board solderd up... it's only 8 mini LED's direct drive from portb whith a knight rider program done myself... simple enough for a test board...

    i'm aware of what you can do with a pic... thats why i switched from the Z80180's (it's a Z80 with dual hardware uarts and memort manager that can access upto 1meg with speeds upto 40MHz) but it kinda hard to get hold of them these days...
    PIC's seem to be the dogs cahuners...

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,133


    Did you find this post helpful? Yes | No

    Default

    For the soft uart case. I seldom use the software choice, but if I do, I make sure that the first thing the program does is to issue a high on the serial port (or low, depends of the way it drives the line).

    Then a pause of 1sec and the serial port is initialized to the idle state. Otherwise, it sees an invalid state and the first at least character is messed up.

    Ioannis

  3. #3


    Did you find this post helpful? Yes | No

    Default

    Morning ioannis,

    thats interesting... i completely understand where your coming from... i'm wondering if my trisb is too close (time wise) to my 'initialised' output line...

    I'm going to sim some variations including setting the port to high or low and waiting...

    Everything i've read on software UART indicates the fastes speed is 9600... can it not go any faster? 19200 would be handy...
    i understand why it's speed limited, i'm just asking if it can? other than me programing a software uart myself...

    Thanks

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,133


    Did you find this post helpful? Yes | No

    Default

    TRIS has nothing to do with this. Just give the serial port enough time to set idle. Normally one character (1/9600 x 10) is more than enough time for your terminal to disregard any "startup noise" from your PIC while powering up.

    As for the speed,since it is soft UART, a faster PIC/Clock will drive your port fast. 19200 is no problem for a 20MHz clock.

    Consider to use the harware UART though. It has also a 2 byte buffer and interrupt too. Even better choose a chip with 2 hardware usarts (some of the 18F series).

    Ioannis

Similar Threads

  1. SMS via pic
    By kenandere in forum GSM
    Replies: 15
    Last Post: - 10th March 2010, 10:00
  2. pic to pic ir link versus wired link : help please anyone
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 30th May 2008, 21:01
  3. PIC16F877A - Timer0 won't interrupt
    By WishMaster^ in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 25th April 2007, 08:25
  4. calibration clock 12f508
    By volcane in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 5th December 2006, 10:33
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23:14

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