www.neatstuff.co.nz


General:
Welcome
Amateur Radio
Electronics
Digital Video Recorder
Vintage Radio
How This Site Works
Linux on an IBM R40e

My public bookmarks

Contact
 
Programming:

8051 Micro Programming

Linux Programming
 
Useful Links:

Sourceforge

Andrews Toyota V8

Artworks.neatstuff.co.nz

More Links
 
Login
Google

8051 Programming Information

For 8051 programming I have been using SDCC a freeware 8051 C compiler

This compiler is open source and continuously improving, Great work guys!

Currently I have been working on a project involving the Cygnal C8051F020 for my final year project at university.
This is like an 8051 on steroids. At 22MHz a NOP and many other instructions take just 47ns :).

They also have a significant number of on chip resources such as ADC and DAC,s and timers. Certainlly a significant improvments over old 8051's. The other nice feature is the 64K flash on chip for program memory.

see www.cygnal.com for more information

Files

Here is some routines I have written and find useful. You are welcome to use these any purpose and if you find any bugs or make any improvments please leave a message on my comments page.
NOTE: A few of these have work arounds for older versions of sdcc and haven't been updated but most should be fine

Filename Description Updated Comments
c8051f020.h **NEW** Include file for the Cygnal C8051F020. Minor buigs corrected since previous version 29/5/2004 Tested with SDCC
ADC_LTC1298.zip Driver for the LTC1298 12-bit Serial ADC chip 20/04/2001 Tested with SDCC
ADC_TLC548.zip Driver for the TLC548 8-bit Serial ADC chip 30/12/2001 Tested with SDCC
basicRS232_v1.0.zip Very simple serial routines that don't use the 8051 serial interrupt. Great for debug output due to the low overhead. 20/04/2001 Tested with SDCC
rwlcd_v0.2.zip This is a general purpose driver for alphanumeric LCD displays (HD44780 based) that has a list of compiletime options to support both 4 and 8 bit operation, connection to a port or memory map, and many others.

NOTE: only 4-bit / on a IO port has been tested in hardware at this stage

20/05/2001 Tested with SDCC
sw_pwm_v0.1.zip A software PWM generator, uses a timer interrupt to generate PWM waveforms on 8051 variants that don't have builtin PWM generators 20/05/2001 Tested with SDCC