|
Steps
|
Software/Hardware Needed
|
Result
|
Description
|
|
Write code in Basic
|
CH Flash Basic
|
code.bsc
|
write the software to flash a led in a format which
makes logical sense to us.
|
|
Compile code.bsc(to assembler)
|
CH Flash Basic
|
code.asm
|
the basic code is converted into assembler which
makes logical sense with regard to the architecture of the
microprocessor
|
|
Assemble code.asm to machine language (hex)
|
MP Lab
|
code.hex
|
Assembling the code creates binary instructions from
the assembler which can be interpreted by the
microcontroller when it is running. It is stored in a file
using hexadecimal notation. This code makes no logical sense
to us.
|
|
download code.hex into the microcontroller
|
Warp 13 software and programmer
or MP Lab with Picstart+ programmer or Warp 13
programmer
|
a programmed microcontroller
|
Loads the code.hex into the flash memory (program
memory) of the microcontroller.
|
|
Breadboard the Circuit
|
breadboard
power supply
electronic components including a programmed
microcontroller
|
A flashing LED
|
|