Dec2


Results 1 to 3 of 3

Thread: Dec2

Threaded View

  1. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    It always worth to do some test with a PC or a LCD... it won't bite you
    Code:
    DEFINE OSC 20
    DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive
    DEFINE HSER_TXSTA 24h ' Enable transmit, BRGH = 1
    DEFINE HSER_SPBRG 129 ' 9600 Baud @ 0.16%
    DEFINE HSER_CLROERR 1 ' Clear overflow automatically
    
    WordA var word
    
    Start:
        worda=1
        gosub sendit
        worda=12345
        gosub sendit
    Spin: goto Spin                      
    
    SendIt:
        hserout ["WordA=",dec worda,13,10,_
                 "     DEC1:",dec1 worda,13,10,_
                 "     DEC2:",dec2 worda,13,10,_
                 "     DEC3:",dec3 worda,13,10,_
                 "     DEC4:",dec4 worda,13,10,_
                 "     DEC5:",dec5 worda,13,10]
        return
    <img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=1281&stc=1&d=116641400 5">
    Attached Images Attached Images  
    Last edited by mister_e; - 18th December 2006 at 03:57.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. RFID medicine teller!! problem with programming
    By sknee8787 in forum mel PIC BASIC Pro
    Replies: 22
    Last Post: - 18th November 2008, 17:31
  2. Clock
    By Fredrick in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 1st February 2008, 02:23
  3. help
    By patricx in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 31st August 2007, 10:13
  4. LCD Clock, Interrup
    By Patrick in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 16th July 2006, 16:00
  5. Timer in real time
    By martarse in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 29th July 2005, 14:24

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