Electronic Device And Electronic Circuit

Data of electronic device , PCB Design and electronic circuit

Google
 
Web basicelectronic.blogspot.com

Tuesday, November 10, 2009

CAN BUS Interface With Microcontroller by SPI Circuit



SYSTEM IMPLEMENTATION



MCP2515
Description
Microchip Technology’s MCP2515 is a stand-alone
Controller Area Network (CAN) controller that implements
the CAN specification, version 2.0B. It is capable
of transmitting and receiving both standard and
extended data and remote frames. The MCP2515 has
two acceptance masks and six acceptance filters that
are used to filter out unwanted messages, thereby
reducing the host MCUs overhead. The MCP2515
interfaces with microcontrollers (MCUs) via an industry
standard Serial Peripheral Interface (SPI).

Features
• Implements CAN V2.0B at 1 Mb/s:
- 0 – 8 byte length in the data field
- Standard and extended data and remote
frames
• Receive buffers, masks and filters:
- Two receive buffers with prioritized message
storage
- Six 29-bit filters
- Two 29-bit masks
• Data byte filtering on the first two data bytes
(applies to standard data frames)
• Three transmit buffers with prioritizaton and abort
features
• High-speed SPI™ Interface (10 MHz):
- SPI modes 0,0 and 1,1
• One-shot mode ensures message transmission is
attempted only one time
• Clock out pin with programmable prescaler:
- Can be used as a clock source for other
device(s)
• Start-of-Frame (SOF) signal is available for
monitoring the SOF signal:
- Can be used for time-slot-based protocols
and/or bus diagnostics to detect early bus
degredation
• Interrupt output pin with selectable enables
• Buffer Full output pins configurable as:
- Interrupt output for each receive buffer
- General purpose output
• Request-to-Send (RTS) input pins individually
configurable as:
- Control pins to request transmission for each
transmit buffer
- General purpose inputs
• Low-power CMOS technology:
- Operates from 2.7V – 5.5V
- 5 mA active current (typical)
- 1 µA standby current (typical) (Sleep mode)
• Temperature ranges supported:
- Industrial (I): -40°C to +85°C
- Extended (E): -40°C to +125°C

http://ww1.microchip.com/downloads/en/DeviceDoc/21801d.pdf

Labels: , ,

Monday, November 02, 2009

ADC AND I/O CAN BUS Circuit


MCP2502X/5X
Description

The MCP2502X/5X devices operate as I/O expanders
for a Controller Area Network (CAN) system,
supporting CAN V2.0B active, with bus rates up to
1 Mb/s. The MCP2502X/5X allows a simple CAN node
to be implemented without the need for a
microcontroller.

The MCP2502X/5X devices feature a number of
peripherals, including digital I/Os, four-channel 10-bit
A/D (MCP2505X) and PWM outputs with automatic
message transmission on change-of-input state. This
includes an analog input exceeding a preset threshold.

Features
• Implements CAN V2.0B
- Programmable bit rate up to 1 Mb/s
- One programmable mask
- Two programmable filters
- Three auto-transmit buffers
- Two message reception buffers
- Does not require synchronization or
configuration messages
• Hardware Features
- Non-volatile memory for user configuration
- User configuration automatically loaded on
power-up
- Eight general-purpose I/O lines individually
selectable as inputs or outputs
- Individually selectable transmit-on-pinchange
for each input
- Four 10-bit, analog input channels with
programmable conversion clock and VREF
sources (MCP2505X devices only)
- Message scheduling capability
- Two 10-bit PWM outputs with independently
programmable frequencies
- Device configuration can be modified via
CAN bus messages
- In-Circuit Serial Programming™ (ICSP™) of
default configuration memory
- Optional 1-wire CAN bus operation
• Low-power CMOS technology
- Operates from 2.7V to 5.5V
- 10 mA active current, typical
- 30 µA standby current (CAN Sleep mode)
• 14-pin PDIP (300 mil) and SOIC (150 mil)
packages
• Available temperature ranges:
- Industrial (I): -40°C to +85°C
- Extended (E): -40°C to +125°C

http://ww1.microchip.com/downloads/en/DeviceDoc/21664D.pdf

Labels: ,

Monday, October 19, 2009

USB Keyboard by Microcontroller with Embedded Hub Circuit

The Atmel sample version of the AT43USB326 contains firmware
that supports customization of the Vendor ID, Product ID,
String Descriptor and the keyboard matrix. This information
is stored in an external AT24C02A serial EEPROM.



The Atmel AT43USB326 is an 8-bit microcontroller based on the
AVR RISC architecture. By executing powerful instructions in
a single clock cycle, the AT43USB326 achieves throughputs
approaching 12 MIPS. The AVR core combines a rich instruction
set with 32 general-purpose working registers. All 32 registers
are directly connected to the ALU allowing two independent
registers to be accessed in one single instruction executed in
one clock cycle. The resulting architecture is more code efficient
while achieving throughputs up to ten times faster than
conventional CISC microcontrollers.

Features
• AVR® 8-bit RISC Microcontroller with 83 ns Instruction Cycle Time
• USB Hub with One Attached and Two External Ports
• USB Keyboard Function with Three Programmable Endpoints
• 16 KB Program Memory, 512 Bytes Data SRAM
• 32 x 8 General-purpose Working Registers
• 32 Programmable I/O Port Pins
• Support for 18 x 8 Keyboard Matrix
• Keyboard Scan Inputs with Pull-up Resistor
• Four LED Driver Outputs
• One 8-bit Timer/Counter with Separate Pre-scaler
• External and Internal Interrupt Sources
• Programmable Watchdog Timer
• 6 MHz Oscillator with On-chip PLL
• 5V Operation with On-chip 3.3V Power Supply
• 48-lead LQFP Package

http://www.atmel.com/dyn/resources/prod_documents/doc3313.pdf

Labels: ,

Wednesday, October 07, 2009

PS/2 SCROLLING MOUSE CONTROL CIRCUIT

DESCRIPTION
The UT84520 Scrolling Mouse Controller is specially
designed to control PS/2 mouse device.This single chip can
interface with three key-switches and 4X-Y photo-couples plus
Z-axis directly to 8042 controller.
There are four types of Z-axis inputs used to implement
scrolling mouse functionality.

FEATURES
*Using 50KΩ+5% resistor for RC oscillation.
*Compatible with legacy PS/2 mouse.
*Compatible with Microsoft PS/2 scrolling mouse.
*Built-in noise immunity circuit.
*The sampling rate of motion detector is up to 65KHz.
*Built-in three step dynamic input impedance.
*Three key-switches and four photo-couples inputs.
*Photo couple test mode included﹒
*Low power dissipation.
*Two types Z direction input:
1.Photo couples input
2.Mechanical input

Labels:

Wednesday, April 15, 2009

Microcontroller to USB Serial Interface Circuit


Microcontroller to USB UART Interface Circuit



Figure 7.4 USB to MCU Serial Interface
An example of using the FT232R as a USB to Microcontroller
(MCU) UART interface is shown in Figure 7.4. In this application
the FT232R uses TXD and RXD for transmission and reception of
data, and RTS# / CTS# signals for hardware handshaking. Also
in this example CBUS0 has been configured as a 12MHz output to
clock the MCU. Optionally, RI# could be connected to another I/O
pin on the MCU and used to wake up the USB host controller from
suspend mode. If the MCU is handling power management functions,
then a CBUS pin can be configured as PWREN# and would also be
connected to an I/O pin of the MCU.

FT245BM datasheet pdf


Implementation USB to microcontroller (AVR)

Purpose of this article is to inform readers about implementation
USB interface into singlechip microcontroller, which this interface
directly not supports. Simply: implementation USB interface on
firmware level (similar as emulation of RS232 Serial interface in
microcontrollers, which not have RS232 Serial support). This project
includes development of firmware on microcontroller side, driver
development on computer side (for Windows operating system) ,
development of DLL library for functions calling from another
programs (programmers level) and development of demo program
(users level), which shows all functions of this device. Device is
named IgorPlug-USB (AVR) (as successor of my previous device
for computer remote control
IgorPlug - serial port version).


Universal USB interface
more

Labels: , ,