Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
williB said:Thanks Nigel
do you use MPLAB , now that you have your inchworm?
I'm just looking to get a progam into my target chip.
MPLAB is confusing as all get out isnt it?
Yes MPLAB recognizes itAyne said:williBUr Inchworm working correcly now???
Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to MPLAB ICD 2
Target Device PIC16F877A found, revision = b4
...Reading ICD Product ID
Running ICD Self Test
...Passed
MPLAB ICD 2 Ready
williB said:I'm just looking to get a progam into my target chip.
MPLAB is confusing as all get out isnt it?
Thank you for sticking with you gut feelings , and not being nasty3v0 said:There is a fair degree of complexity that cannot be advoided.
Given all the chip types and all the options associated with them MPLAB is not overly complicated.
As a rule I try to be nice, never nasty, and I will try to stick with that. I
suggested you download the OS in another thread and you come here asking what the OS was ?
If you had read the you would not be asking if you need the OS.
My next suggestion is that you do not use the Inchworm without one of the exact chips used in his "Hello World" poster. Doing so will make your first experience much easier.
About bootloader, OS, and debug executive.
What Nigel said is right but let me try to make it a bit clearer.
The bootlaoder is a small program that runs on the Inchworm 16F877. About the only thing it does is allow MPLAB to download sortware (the OS) into the 16F877. A 16F877 will not work in an inchworm without the bootloader.
The OS is loaded by MPLAB to the Inchworm 16F877. The OS is used to communicate with the target chip. The OS used is dependant on the target chip type. You need to download an OS once to start with. Each time you switch between PIC12, PIC16, and PIC18 you need to download a matching OS. Set the MPLAB interface to allow it to do so automatically.
The target chip has a program of its own known as a debug executive. The debug executive is used in conjunction with the onchip debug hardware to step, breakpoint, and run programs on the target. When you program a target MPLAB will download the debug executive for you if needed.
To recap.
- The Inchworm 16F877 must be programmed with a bootloader prior to using it with the Inchworm (ones supplied with kit have this).
- Once you get the Inchworm assembled you have to download the correct OS. See the assembly instruction.
williB said:Yes MPLAB recognizes it
but i am still having problems getting the program into the target chipCode:Connecting to MPLAB ICD 2 ...Connected Setting Vdd source to MPLAB ICD 2 Target Device PIC16F877A found, revision = b4 ...Reading ICD Product ID Running ICD Self Test ...Passed MPLAB ICD 2 Ready
my target is a 16F877A BTW
Ayne said:If i load OS in my PIC16F877A then my Microcontroller will locked?? I mean it will be password protected after loading OS into PIC16F877A??
3v0 said:Yes as you said, go to the I. Follow the seven steps. Bill did a good job you should not have a problem.
;*** WDT reset toggles RB0
list p=16F877A
include <p16F877A.inc>
_config 0x3F35
org 0000h
bsf STATUS,RP0
movlw b'00001110'
movwf OPTION_REG
movlw b'10111110'
movwf TRISA
bcf STATUS,RP0
bcf PORTA, 6
movlw b'10000000'
xorwf PORTA, f
sleep
end
Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:\Program Files\Microchip\MPASM Suite\MPAsmWin.exe" /q /p16F877A "hello world.asm" /l"hello world.lst" /e"hello world.err"
Error[108] C:\PIC PROJECTS\HELLO\HELLO WORLD.ASM 4 : Illegal character (0)
Message[302] C:\PIC PROJECTS\HELLO\HELLO WORLD.ASM 8 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] C:\PIC PROJECTS\HELLO\HELLO WORLD.ASM 10 : Register in operand not in bank 0. Ensure that bank bits are correct.
Skipping link step. Not all sources built successfully.
BUILD FAILED: Tue Mar 06 12:32:01 2007