Using Microcode Bootloader + CDLite + Hyperterminal


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Join Date
    May 2005
    Posts
    70


    Did you find this post helpful? Yes | No

    Default

    Milestag, sir

    I Just add this line but not work

    DEFINE LOADER_USED 1

    pic 16f877a complier with microcode studio plus 2.2.10

    After download with "Tinybldwin191 into microcontroler "WARNING: PCLATH not initialised before GOTO! ... could not repair.,

    How to fixed it

    here is my code:
    define loader_used 1
    Define OSC 20
    TRISB = 0 'rb0 =output
    TRISB.1 = 0
    Include "modedefs.bas"
    loop: Serout PORTC.6,T9600,["Hello",10,13] ' Display "Hello", next line
    pause 500 ' Wait .5 second
    high portb.1
    Serout PORTC.6,T9600,["World",10,13,10,13] ' Display "World", skip a line
    paUSE 500 ' Wait .5 second
    low portb.1
    Goto loop ' Do it forever
    End

  2. #2
    Join Date
    Sep 2005
    Location
    Dayton, Ohio
    Posts
    72


    Did you find this post helpful? Yes | No

    Default

    What bootloader file did you program into the PIC? I assume you had to edit the 16F876A file?

    Does the bootloader interface identify the connected PIC okay when you click on Check PIC?

    So many variables here, and I don't have extensive experience on this bootloader. I can only tell you what worked for me. Be sure to read all the instructions included with the program.
    Jim Robertson
    "MilesTag" DIY Lasertag
    www.lasertagparts.com/mtdesign.htm
    Dayton, Ohio

  3. #3
    Join Date
    May 2005
    Posts
    70


    Did you find this post helpful? Yes | No

    Default

    Dear milestag

    Yes commucate is OK after i edit asm file by change micro from 16f877 to 16f877a and see below

    radix DEC
    LIST P=16F877a, F=INHX8M
    xtal EQU 20000000
    baud EQU 115200
    __CONFIG _XT_OSC & _CP_OFF & _WDT_OFF & _BODEN_ON & _PWRTE_ON & _LVP_OFF & _DEBUG_OFF
    Last edited by chai98a; - 27th November 2005 at 04:47.

  4. #4
    Join Date
    Sep 2005
    Location
    Dayton, Ohio
    Posts
    72


    Did you find this post helpful? Yes | No

    Default

    I don't know what the problem is, maybe someone else here has seen it. If the error is from the bootloader, then maybe you will have to try contacting the author.

    Does your code work okay with a traditional PIC programmer (EPIC, etc)?

    Have you tried compiling for different baud rates or oscillator freq? Double check everything too. Make sure you had the right chip selected in MCS, etc. This is the hazard of freeware....limited or no support (you get what you pay for, right?)

    BTW - Probably unrelated, but I always try everything I can think of....if you are using 20MHz crystal, then I believe you need to use HS_OSC instead of XT_OSC. Someone else here pointed that out to me on an earlier problem I had.
    Jim Robertson
    "MilesTag" DIY Lasertag
    www.lasertagparts.com/mtdesign.htm
    Dayton, Ohio

  5. #5
    Join Date
    May 2005
    Posts
    70


    Did you find this post helpful? Yes | No

    Default

    Dear milestag
    thank you for advise..

Similar Threads

  1. Bootloader files for MicroCode Studio Plus
    By keithdoxey in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 30th December 2007, 18:54
  2. MAX232 Pin Voltages / Bootloader / Microcode Studio
    By rossfree in forum Schematics
    Replies: 0
    Last Post: - 3rd May 2007, 15:00
  3. CDlite to MicroCode Studio
    By grounded in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 30th January 2007, 15:46
  4. Microcode Bootloader without MAX232
    By kblim in forum Schematics
    Replies: 6
    Last Post: - 9th August 2006, 02:17
  5. Replies: 1
    Last Post: - 16th June 2005, 02:56

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