27924 Parallax Inc, 27924 Datasheet - Page 4

Microcontroller Modules & Accessories TAOS TSL230 Light to Frequency Converter

27924

Manufacturer Part Number
27924
Description
Microcontroller Modules & Accessories TAOS TSL230 Light to Frequency Converter
Manufacturer
Parallax Inc
Datasheet

Specifications of 27924

Product
Microcontroller Accessories
Flash
256 KB
Timers
5 x 8 bit
Board Size
88.9 mm x 50.8 mm x 21.84 mm
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
*********************************************************}}
CON
OBJ
PUB go | old
Resources and Downloads
The BASIC Stamp and Propeller code and the manufacturer’s datasheet, more example applications can
be downloaded from the TSL230R product page. Go to www.parallax.com, then enter 27924 in the
Search field.
Copyright © Parallax Inc.
_clkmode = xtal1 + pll16x
_XinFREQ = 5_000_000
pin = 0
cbase = 1
scale = %10
ctrmode = $28000000
term : "tv_text"
dira := %11 << cbase
outa := scale << cbase
term.start(12)
frqa := 1
ctra := ctrmode + pin
repeat
waitcnt(80_000_000 / 10 + cnt) 'wait for 100ms
term.dec(phsa)
term.out($0D)
phsa := 0
Coded by Paul Baker (Parallax)
TSL230R Light-to-Frequency Converter (#27924)
'pin connected to tsl230 output
'pin connected to S0 (S1 connected to cbase + 1)
'scale value for tsl230 (%00=off,%01=x1,%10=x10,%11=x100)
'mode value for counter to operate as a frequency counter
'set scale pins to output
'set scale value
'start terminal
'set counter to increment by one
'start counter
'output counter value
'line feed
'reset counter value
v1.0 12/14/2007 Page 4 of 4

Related parts for 27924