Serial Data Sender Program Listing on Microcontroller by Using Bascom Code on Microcontroller AT-MEGA 16 (in order to create an serial communication to delphi)
Table. The Example of Serial Communication Program
Source Code | A Brief Explanation |
$Regfile=”m16def.dat” | A type of microcontroller used |
$Crystal=16000000 | Crystal which is used |
$Baud=19200 | Baud Rate which is used |
Print “Test Serial” | Writing text test serial to PC, the next between mark “ “ |
End | The end of source code |
serial communication delphi with mirocontroller bascom |
Picture. The Example of Serial Communication Program AT MEGA 16 with Bascom AVR
Afterwards, the program can be compiled, and then it is downloaded to microcontroller with extreme burner software.
the testing of this applcation can be checked on the post Using Hyperterminal for Serial Communication Delphi
the testing of this applcation can be checked on the post Using Hyperterminal for Serial Communication Delphi
No comments:
Post a Comment