pic telemetry system


Closed Thread
Results 1 to 24 of 24

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default

    and now... i'm having Floting Point Math 'issues' too...

    FPM sux...

  2. #2


    Did you find this post helpful? Yes | No

    Default

    ok, i got it to output the voltage... so, the analog input now output as a voltage over serial connection... so i'm posting my code for anyone else that wants to use it...

    Code:
    Loop:
    ADCIN 0, ADT1
    ADT1 = ADT1 / 64
    VARHIGH = ((48 * ADT1) / 10000)
    VARLOW = ((48 * ADT1) - (((48 * ADT1) / 10000) * 10000)) / 100
    
    HSEROUT ["DEC: ", DEC5 ADT1," V: ",DEC5 VARHIGH,".",DEC5 VARLOW,10]
    GOTO Loop:
    It's actually reading 2% low in the simulation... but thats good enough for me... may be a completely diferent case when in hardware...

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    Did you find this post helpful? Yes | No

    Default

    In your soft com maybe you have to use n9600 instead of t9600.

    Ioannis

  4. #4


    Did you find this post helpful? Yes | No

    Default

    i tried all combinations of inverted output with none inverted input (into the software uart screen), vica versa and the combo's between...

    but the weird thing is... after the first line it gets all the numbers correct... so, it's almost like a sync problem... but this is all done in sim software, so why would their be and sync problems...

    next job on my telemetry system is to make a counter... or more precisely, an RPM counter...

    I'm mauling over creating a software uart buffer so that while it's waiting for the next AD conversion it can be sending the data...


    I miss the good days of sending a full byte to a hardware uart in one go and have the program go do something else... I loved having 8/16 byte buffers on uarts...
    I also (kinda) loved frying z80 chips when i got hardware wrong... programming in machine code, tape drives, 3" floppies... ahhh those were the days... although, battery backed ram modules were cool...

  5. #5
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    I miss the good days of sending a full byte to a hardware uart in one go and have the program go do something else...
    But that's EXACTLY what you do with a PICs USART anyway...

    Actually thinking about it...

    I also (kinda) loved frying z80 chips when i got hardware wrong... programming in machine code, tape drives, 3" floppies... ahhh those were the days... although, battery backed ram modules were cool...
    You can do all of the above with PICs too...

  6. #6


    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...

  7. #7
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    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

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