Home › Service › The R8C Service page

The R8C Service page

R8C13 introduction - Where to Buy ? - Your own projects - An initial Report - Debugger KD30 - The R8C service page

 

The R8C Service page

On this page we list tips, tricks and example projects received from enthusiastic R8C users. The aim of this page is to compile a knowledge base for all R8C users.

Please send your contribution to this collection to: editor@elektor-electronics.co.uk

Example projects
Note: due to the fact that the R8C project was published in the German Elektor two months before the English, Dutch and French magazines, the first contributions we are able to list below are largely in German. Despite possible problems understanding German these contributions should contain useful information.

From the February 2006 issue, port_toggle.zip | timer_interrupt.zip | jingle_bells.zip

Random generator for keys and 8 LEDs | zufall.zip
The example shows how to deal with IF-ing a port state. Following a reset all ports are at high-impedance. Only outputs have to be defined as such by means of the Port Direction Register.

From ‘M16-User’, PC oscilloscope, modified version for the R8C/13 | Oszi_13.zip
p0_7 (AN0) acts as the analogue input; p3_2 as a LED output (for test purposes); UART1 doubles as download port and data interface. Hence debugging via the Monitor will be problematic. A Define allows a primitive timebase to be set up in ms. The A/D conversion is averaged 16 times. At the analogue input you should fit an RC network, depending on the roll-off frequency, or at least a capacitor with a few tens of pF (further details to be found in the datasheets).

From ‘Daniel’, Function Toolkit. Clock frequency switchover; serial interface Ser0, string output; timer | elektor_1.zip

From ‘Omega’, Measurement program. On AN1=port0_6 a voltage is continuously measured and then output at 38.4 kbit/s with a VB program supplying a graph | Spannung.zip

From ‘Ernesto’, Keyscan. The R8C scanning a DTMF keypad salvaged from an old telephone | Tastatur.zip

From ‘ACDC’, 4-bit LCD Control. Suitable for the R8C board on port 0, also for LCD controller KS0066 and with freely selectable special characters, integer number and floating point output and voltage measurement | HD44780_4Bit.zip

Example project from Elektor Electronics April 2006,
Driving the LCD on the Application Board, the serial interface UART0 and the A/D converter | lcd.zip

More application examples to follow, please revisit this page.

Spotlight

Computer Vision

Learn more about Computer vision, probably the most exciting branch of image processing. With this book the first step is easy!