gnupic: sdcc example code


Previous by date: 1 Aug 2005 22:39:21 +0100 Re: [gnupic] for starters, Peter Onion
Next by date: 1 Aug 2005 22:39:21 +0100 Re: [gnupic] for starters, m listus
Previous in thread:
Next in thread:

Subject: sdcc example code
From: Peter Onion ####@####.####
Date: 1 Aug 2005 22:39:21 +0100
Message-Id: <1122932332.7166.50.camel@HP.RoomLan>

I've put up some more example sdcc code for 18FXXX devices.

http://www.btinternet.com/~Peter.Onion/sdcc/USARTdemo.c

This shows how to use the USART interrupts for serial input and output.
It's the start of a simple network protocol I'm developing to send short
packets (1..16 bytes) between a PC and a PIC or between PICs.

Build it with 

sdcc -V  -mpic16 -p18f452  USARTdemo.c

You'll need a LED on PORTC:0 (to see the heart beat) and a terminal
(9600baud/8bit/no parity) connected to the USART TX and RX pins.

Peter


Previous by date: 1 Aug 2005 22:39:21 +0100 Re: [gnupic] for starters, Peter Onion
Next by date: 1 Aug 2005 22:39:21 +0100 Re: [gnupic] for starters, m listus
Previous in thread:
Next in thread:


Powered by ezmlm-browse 0.20.