Details
BUY AT90CAN128-16AU https://www.utsource.net/itm/p/11249014.html
| Parameter | Description | Value/Range |
|---|---|---|
| Device | Microcontroller | AT90CAN128-16AU |
| Package | Package Type | TQFP (44-pin) |
| Operating Voltage | Supply Voltage Range | 2.7V to 5.5V |
| Clock Frequency | Maximum Clock Speed | 16 MHz |
| Flash Memory | Program Memory Size | 128 KB |
| EEPROM | EEPROM Size | 4 KB |
| SRAM | SRAM Size | 8 KB |
| CAN Interface | CAN Controller | 2.0B compliant, up to 1 Mbps |
| ADC | Analog-to-Digital Converter | 10-bit, 8 channels |
| DAC | Digital-to-Analog Converter | Not available |
| Timers/Counters | Number of Timers/Counters | 3 x 8-bit, 2 x 16-bit |
| PWM | Pulse Width Modulation Channels | 6 channels |
| USART | Universal Synchronous Asynchronous Receiver Transmitter | 2 channels |
| SPI | Serial Peripheral Interface | 1 channel |
| TWI | Two-Wire Interface (I2C) | 1 channel |
| Watchdog Timer | Watchdog Timer | Yes |
| Temperature Range | Operating Temperature Range | -40°C to +85°C |
| I/O Pins | Number of I/O Pins | 35 |
| Power Consumption | Active Mode Power Consumption (Typical) | 3.0 mA @ 5V, 16 MHz |
| Sleep Modes | Sleep Modes | Idle, ADC Noise Reduction, Power Down, Power Save, Standby, Extended Standby |
| Programming Interface | In-System Programming (ISP) | Yes |
| Package Dimensions | Package Dimensions (LxWxH) | 14 mm x 14 mm x 1.4 mm |
Instructions for Using AT90CAN128-16AU
Power Supply:
- Ensure the supply voltage is within the range of 2.7V to 5.5V.
- Use a stable power source to avoid voltage fluctuations that can cause system instability.
Clock Configuration:
- The device supports both internal and external clock sources. For external clock sources, connect a crystal or oscillator to the XTAL1 and XTAL2 pins.
- Set the fuse bits to configure the clock source as required.
Programming:
- Use an ISP programmer to program the flash memory. Connect the programmer to the ISP header (MISO, MOSI, SCK, RESET, VCC, GND).
- Ensure the programming software is compatible with the AT90CAN128-16AU.
CAN Interface:
- Initialize the CAN controller using the appropriate registers.
- Configure the bit timing parameters for the desired baud rate.
- Use the CAN interrupts to handle message reception and transmission.
ADC Configuration:
- Select the ADC channel and set the reference voltage.
- Start the conversion by setting the appropriate bits in the ADC control register.
- Read the conversion result from the ADC data register.
Timers and PWM:
- Configure the timer prescaler and mode of operation.
- Set the compare match values for generating PWM signals.
- Enable the PWM output on the designated pins.
USART Configuration:
- Set the baud rate, data frame format, and enable the USART module.
- Use the transmit and receive buffers to send and receive data.
SPI and TWI:
- Configure the SPI or TWI module as master or slave.
- Set the clock speed and data format.
- Use the appropriate registers to transfer data.
Interrupts:
- Enable the required interrupts in the interrupt mask register.
- Write the interrupt service routines (ISRs) to handle the interrupts.
Sleep Modes:
- Enter sleep modes to reduce power consumption.
- Use the sleep mode control register to select the appropriate mode.
- Wake up the device using external interrupts or watchdog timer.
Pin Configuration:
- Configure the I/O pins as input or output using the DDR (Data Direction Register) and PORT registers.
- Use pull-up resistors for input pins if necessary.
Debugging:
- Use the debugWIRE interface for on-chip debugging.
- Connect a debugger to the debugWIRE pin and use the appropriate software tools.
By following these instructions, you can effectively utilize the AT90CAN128-16AU microcontroller in your applications.
(For reference only)View more about AT90CAN128-16AU on main site
