PsySc0rpi0n
Newbie level 4
- Joined
- Oct 5, 2014
- Messages
- 5
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 43
Hello everyone...
I'm studying Electrotecnics Engineering and we are going to program an 8051 compatible micro controller. The DS89C450.
I already built my electronic circuit and I'm using an FTDI 5V to convert RS232+MAX232 into USB to communicate with uC and I'm also using a crystal of 110592MHz.
I wrote a small program just to test things that lights on and off 8 LEds that I have connected to PORT1 of uC.
I'm using cutecom to send the code into the uC and I also have a switch that changes from RUN to PROGRAM and vice-versa.
I'm selecting the next settings in cutecom:
Device: /dev/ttyUSB0
Baud rate: 57600
Data bits: 8
Stop bits: 1
Parity: None
Open for: Reading, Writing
Hex input and Hex output
Then I select a file generated by MCU 8051 IDE and SDCC (to compile C code and Assembly) that is the Intel hex format and send it to uC.
Then I click "Close device" and change the switch to "run" mode but the LED's are not blinking as supposed!
The C/Assembly code I'm sending the uC is:
Any help is appreciated!
I'm studying Electrotecnics Engineering and we are going to program an 8051 compatible micro controller. The DS89C450.
I already built my electronic circuit and I'm using an FTDI 5V to convert RS232+MAX232 into USB to communicate with uC and I'm also using a crystal of 110592MHz.
I wrote a small program just to test things that lights on and off 8 LEds that I have connected to PORT1 of uC.
I'm using cutecom to send the code into the uC and I also have a switch that changes from RUN to PROGRAM and vice-versa.
I'm selecting the next settings in cutecom:
Device: /dev/ttyUSB0
Baud rate: 57600
Data bits: 8
Stop bits: 1
Parity: None
Open for: Reading, Writing
Hex input and Hex output
Then I select a file generated by MCU 8051 IDE and SDCC (to compile C code and Assembly) that is the Intel hex format and send it to uC.
Then I click "Close device" and change the switch to "run" mode but the LED's are not blinking as supposed!
The C/Assembly code I'm sending the uC is:
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 #include "reg_uC89C4xx.h" void delay(unsigned long int i) //delay function { while(i != 0){ i--; } } void main (void) { while (1) { P1 = 0; delay (10); P1 = 255; delay (4000); } }
Any help is appreciated!
Last edited by a moderator: