View Full Version : Franklin C on NMIY 8031
hsukiang
03-05-02, 08:40 AM
i manage to download my hex file into NMIY8031.
however whn i execute wth the command :
X 8000
there is no response fr the pins as i want to turn on LEDs.
this is how i wrote my C code (franklin c51 proview) to turn ON my pin 0 of port1 to light up my LED
sfr p1=0x90;
sbit uutxf=p1^0;
uutxf=1;
i m not sure if its the way i execute the hex file downloaded which is wrong or the way i write my C is wrong.
plz advice. thank you
nmitech
03-05-02, 11:47 AM
1. I am not familiar with Franklin C, but when you compile your program does it generate any syntax error?
Your program listed below it does not seem right to me, especially line #2 & 3. I maybe wrong. Please check with franklinC on this to make sure.
sfr p1=0x90;
sbit uutxf=p1^0;
uutxf=1;
In my opinion, It may look like this,
sfr p1=0x90;
uutxf=sbit(p1^0);
2. After you loaded the hex to the ram on board, just use the dump command "U" to display the contents in the memory make sure it there. If not, Check the code/data address configurations in the FranklinC included files for proper setup.
hsukiang
03-05-02, 12:55 PM
franklinC happily compiles it into the Hex file needed to download into NMIY. so i assume there is no problem wth the syntax.
i guess it must be other problems.
like addresing...so i checked the franklin reg51.h and found tht each port address is correct
eg : p1=0x90....
whn i typed X8000 (to execute fr address 8000 of the emulated ROM) to execute the hex file loaded, the cursor just jump a line and stay blinking.
does tht mean it is already executed?
do advice, i m still green at this.
thank you.
nmitech
03-05-02, 01:05 PM
Write your program with an infinite loop to toggle P1.0 (ON/OFF) every second or so, then use the scope or DVM to check the signal at P1.0 pin make sure it is toggling When you execute the code.
ahmed709
12-08-06, 02:46 PM
haw can i download franklin? please reply :)
nmitech
12-11-06, 09:42 AM
The NMIY-0031 monitor program supports the hex file for downloading to the ram onboard. At the monitor prompt simply enter "L" then send the hex file. To send a text file using MaxTerm terminal program, press ALT+D and enter the full path where the hex file is located at.
vBulletin v3.0.7, Copyright ©2000-2010, Jelsoft Enterprises Ltd.