6programming procedure, 1 writing/changing a program, 2 compiling – Velleman К8048 User Manual

Page 7

Advertising
background image

Hardware installation

5

K8048 © 2003 Velleman Components

6

Programming Procedure

Programming the microcontrollers: preparations

·

Writing or modifying the source code: the source code is usually written in PIC assembler.
Look at the examples in the Velleman\K8048\Examples\ folder.

·

Compiling: the code you have written in comprehensible language is converted into machine
language. In this instance the Microchip PIC assembler software, MPASMWIN.EXE, is used.

·

Programming: the machine code is programmed in the processor via your PC and the K8048,
using the PROGPIC2.EXE software

·

Erase pic device: erasing the contents of a controller

6.1

Writing/changing a program

In order to write or modify a program: \Velleman\K8048\Examples\DEMOF627.ASM

Example of a program treated with 'NOTEPAD'.

6.2

Compiling

Start MPASMWIN.EXE in the \Velleman\K8048 folder

The following setup screen is displayed (

click on the number for more details

):

Advertising