www.mct.de/www.mct.net
Path in samples directory:
file (hardware-independent)
MCU-FAMILY/file (controller-specific)
MCU-FAMILY/target/file (target-specific)Demonstrates how to... MC68332/mega332/adc1.c
- read a single ADC channel.
- reduce signal noise using low pass filtering.
MC68332/mega332/adc14.c
- continuously read all ADC channels. The QSPI can do this stand-alone, after appropriate initialization.
MC68332/mega332/canmon.c
- communicate via CAN.
MC68332/mega332/rtc_irq.c
- use the RTC to generate interrupts.
MC68332/pit.c
- use the PIT to generate periodic interrupts.
MC68332/sound.c
- use TPU channel 2 to generate sound.
MC68332/spi.c
- use the SPI.
MC68332/tpu_di4.c
- use TPU channel 4 as digital input.
MC68332/tpu_do2.c
- use TPU channel 2 as digital output.
MC68332/tpu_emu.c
- use the TPU in emulation mode.
MC68332/tpu_int4.c
- use TPU channel 4 as interrupt input.
MC68332/tpu_pwm2.c
- use TPU channel 2 to produce a PWM signal.
MC68332/tpu_qdec.c
- decode signals from a quadrature encoder.
clock.c
- measure program execution time.
date.c
- read and set the RTC.
rawio.c
- use getch()/putch()/kbhit().
stdio.c
- use stdin/stdout.
tty.c
- change the baudrate for stdin/stdout/stderr.
- set interrupt mode for stdin.