SOURCES
■ Silicon Laboratories ( www.si
labs.com) — C8051F120,
C8051F120 Development Board
■ Keil ( www.keil.com) — Keil
uVison3 C Compiler
■ Saelig ( www.saelig.com) —
Cleverscope
supplied to DAC0 via the x2 buffer/
amplifier.
CHECKED OUT
You’re ready to roll with
your own C8051F120 applications
as you’re now “checked out” on
the C8051F120 and its on-chip
peripherals. If you’re wondering about
the absence of analog-to-digital
converter coverage, here it is courtesy
of the Configuration Wizard 2
application:
USB - XBee
Dongle
Wireless serial links are easy now. The
USB to XBee Dongle shown above hosts
an XBee Pro 2.4GHz RF transceiver. It
allows USB to remote XBee Pro ttl output
serial communications at standard baud
rates up to 115200 and ranges up to a mile.
Dongle $39. Kit with Dongle and 2 XBee
Pro modules for $111. Visit/call for details.
www.newmicros.com Tel:214-339-2204
void ADC_Init()
{
SFRPAGE = ADC0_PAGE;
ADC0CN = 0x80; // enable ADC0
}
Use the Configuration Wizard 2
application to choose your analog-to-digital converter trigger method and
write some simple code to poll
for and fetch the analog-to-digital
converter result. That’s all you need to
read voltages at the C8051F120’s
AN0 input. Using the C8051F120’s
analog-to-digital converter in basic
mode is no different than using any
other microcontroller’s analog-to-digital converter.
The key to C8051F120 application
success lies with the Configuration
Wizard 2 application and the
Keil µVision3/Silicon Laboratories
development suite. If you have control
over the aforementioned items, you
can easily add the C8051F120 to your
Design Cycle. NV
CONTACT THE AUTHOR
■ Peter Best can be reached via
email at peter@nerdvilla.com.
June 2007 91