Thursday, 10 December 2015

INTERFACING WITH TOOLSTICK

Today we will Program the flash to toolstick.

The code must be change at

Using keil, we using 
 #include <reg51.h> 

but in Simplicity Studio we ne to change it to

#include <SI_C8051F850_Register_Enum.h>
#include "InitDevice.h"

so that the toolstick know each port we are using.
There are also different at void main() section
We must include this code before flash the program

IF we do not add this code, the code will not sent output to I/O port.

enter_DefaultMode_from_RESET();

This code also IMPORTANCE before flash the program.

PS;/ This code have been tested with example with or without the require code.



0 comments:

Post a Comment