Sign in

username:

password:



Not a member?

Search 68hc12



Search tips

Subscribe to 68hc12



68hc12 by Keywords

68HC1 | 812A4 | 9S12DP256 | Bootloader | CodeWarrior | D60A | Debugger | DP256 | ECT | EEPROM | EVB | Flash | HC1 | HCS12 | I2C | IAR | ICC1 | Interrupts | LCD | M68KIT912DP256 | MC9S12DP256 | MC9S12DP256B | Metrowerks | Motor | MSCAN | Multilink | PLL | Quadrature | SDI | SPI | Transceiver | XFC

Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | 68HC12 | COMMUNICATION: HCS12 - RS232 - PC

Join our technical discussions about Freescale Microcontrollers: M68HC12. (Freescale Semiconductor is a Subsidiary of Motorola).

COMMUNICATION: HCS12 - RS232 - PC - Martin Honeą - Mar 13 4:40:00 2003

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]





(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )


Re: COMMUNICATION: HCS12 - RS232 - PC - Author Unknown - Mar 13 8:25:00 2003

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]





(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )

Re: COMMUNICATION: HCS12 - RS232 - PC - Oliver Thamm - Mar 13 17:20:00 2003

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 ***
-----------------------------------------------------





(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )

Re: COMMUNICATION: HCS12 - RS232 - PC - uripeled2000 - Mar 16 5:34:00 2003

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 ***
> -----------------------------------------------------


______________________________
controlSUITE™ software. Comprehensive. Intuitive. Optimized.
Real-world software for real-time control. Details Here!



(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )