Join our technical discussions about Freescale Microcontrollers: M68HC12. (Freescale Semiconductor is a Subsidiary of Motorola).
|
Hi, i am using the HCS12 chip (MC9S12DP256) and I have to communicate through the RS-232 with PC. Be so kind and help me. I find any (C source) codes, which could get me started. Thanx, Martyn [Non-text portions of this message have been removed] |
|
|
|
In a message dated 3/13/03 4:42:45 AM Eastern Standard Time, writes: > i am using the HCS12 chip (MC9S12DP256) and I have to communicate through > the RS-232 with PC. Be so kind and help me. I find any (C source) codes, > which could get me started. I assume you have a c compiler. The compiler already has the functions you need.... you need to init the sci for 9600 bps operation, and you need a function to send a character and another to receive a character... these are putchar() and getchar(); So a simple first program might be #include <stdio.h> void main(void){ char c; initsci(); while(1){ printf("This is a test\n"); } } [Non-text portions of this message have been removed] |
|
|
|
Hi Martyn, check out the example code in the ACPRD HCS12 reference design, it also contains some SCI stuff: http://hc12web.de/acprd On Thu, 13 Mar 2003 10:40:01 +0100 Martin Honeš <> wrote: > Hi, > > i am using the HCS12 chip (MC9S12DP256) and I have to communicate through the RS-232 with PC. Be so kind and help me. I find any (C source) codes, which could get me started. > > Thanx, Martyn Happy HC(S)12ing! Oliver ----------------------------------------------------- *** Oliver Thamm's HC12 Web *** http://hc12web.de *** ----------------------------------------------------- |
|
|
|
Hi I had the same problem Try to use Version V2 of the Metrowerks it has automatic beans that start it for you.If you can't find contcat me I will help you --- In , Oliver Thamm <othamm_yahgrp@h...> wrote: > Hi Martyn, > > check out the example code in the ACPRD HCS12 reference design, it also > contains some SCI stuff: > http://hc12web.de/acprd > > On Thu, 13 Mar 2003 10:40:01 +0100 > Martin Honeš <martinhones@s...> wrote: > > > Hi, > > > > i am using the HCS12 chip (MC9S12DP256) and I have to communicate through the RS-232 with PC. Be so kind and help me. I find any (C source) codes, which could get me started. > > > > Thanx, Martyn > Happy HC(S)12ing! > Oliver > ----------------------------------------------------- > *** Oliver Thamm's HC12 Web *** http://hc12web.de *** > ----------------------------------------------------- |