MIKROE-2366

MIKROE-2366 Datasheet


From MikroElektonika Documentation

Part Datasheet
MIKROE-2366 MIKROE-2366 MIKROE-2366 (pdf)
PDF Datasheet Preview
Thumbwheel click

From MikroElektonika Documentation

Thumbwheel click is a mikroBUS add-on board with a 10-position rotary sprocket connected to a 1-Wire 8-Channel Addressable Switch.

Features and usage notes

Thumbwheel click

The starting position of the switch is marked with a small notch on the PCB above the wheel. Printed numerals from 1 to 10 clearly mark each position. The thumbwheel has a crown with small incisions for better finger traction. The board can use both a 3.3V or a 5V power supply. The One-Wire signal can be sent either through the mikroBUS AN or PWM pins. You choose which one by soldering the GP SEL jumper into the right position. Schematic also available in PDF Thumwheel click is controlled through a simple Dallas One-Wire protocol with only three functions. There is a function for configuring the registers, a function for reading the current position of the thumbwheel, and a function for software reset. Hardware reset can be executed using the RST pin.

MikroElektronika compilers contain a One-Wire library that works with this click.

Programming

The following code snippet reads the current position of the thumbwheel

Thumbwheel click

IC/Module Thumbwheel, DS2408 8-channel addressable switch

Interface 1-Wire OW1 or OW2

Power supply
3.3V, 5V

Website
1 char DS2408_ChannelRead
int state;
while Ow_Reset &GPIOA_BASE, 0 ;

Ow_Write &GPIOA_BASE, 0, DS2408_SKIP_ROM_CMD ;

Ow_Write &GPIOA_BASE, 0, DS2408_CHANNEL_READ_CMD ;
state = Ow_Read &GPIOA_BASE, 0 ;
return state;

Code examples that demonstrate the usage of Thumbwheel click with MikroElektronika hardware, written for mikroC, mikroBasic and mikroPascal for ARM, AVR, dsPIC, and PIC are available on [Libstock].

Resources
- DS2408 8-channel addressable switch - Code example on Libstock - MikroBUS standard specifications

Retrieved from

This page was last modified on 22 July 2016, at Content is available under Creative Commons Attribution unless otherwise noted.
8/8/2016
More datasheets: LA100P604TI | LA100P1504 | LA100P2004 | LA100P804 | LA100P504TI | LA100P1004 | LA100P1254TI | CTNC58F | MASW-010350-001SMB | MASW-010350-TR3000


Notice: we do not provide any warranties that information, datasheets, application notes, circuit diagrams, or software stored on this website are up-to-date or error free. The archived MIKROE-2366 Datasheet file may be downloaded here without warranties.

Datasheet ID: MIKROE-2366 649495