26-Aug-10 USB-DAQ HW147-5 www.hexwax.com Interrupt Processing In addition to being triggered by the real time " />
鍙冩暩(sh霉)璩囨枡
鍨嬭櫉锛� USB-DAQ-SS
寤犲晢锛� Flexipanel
鏂囦欢闋佹暩(sh霉)锛� 7/8闋�
鏂囦欢澶�?銆�?/td> 0K
鎻忚堪锛� IC SYSTEM DATA LOGGER 20-SSOP
妯�(bi膩o)婧�(zh菙n)鍖呰锛� 25
绯诲垪锛� *
鍏跺畠鍚嶇ū锛� 658-1042-5
p7 of 8
26-Aug-10
USB-DAQ
HW147-5
www.hexwax.com
Interrupt Processing
In addition to being triggered by the real time clock,
application code can be executed in response to an
interrupt event. Most interrupts are supported. Interrupt
priority should be set to high.
When an interrupt occurs, USB-DAQ will clear the
interrupt enable bit and pass control to the application
code. It is then the application code鈥檚 responsibility to
clear the interrupt flag and re-set the interrupt enable.
File Access
Up to four files can be accessed by the USB-DAQ. It
modifies the contents of these files but does not create
or delete them, or modify their length. They must be
copied from the PC for the application to execute.
When the end of the file is reached, the file pointer
wraps round to the beginning again (plus any header
space reserved.) All read and write operations must be
within the 512-byte sector boundaries of the files.
Therefore it is usual for logged records to be a power of
two in length.
Compiled Code
The code is compiled into a reduced instruction set
which is then interpreted at run-time. This compiled
code is shown in the spreadsheet.
TEAclipper Programming
For programming the firmware using TEAclipper/PIC HV,
the PGC, PGD and Vpp pins must be accessible.
During programming, these pins must be protected
against contention.
In particular, note that Vpp is
subject to up to 13V during programming. Nothing else
should be connected to Vpp except via a 22k pull-up
resistor.
The TEAclipper connector format is shown in figure 8.
Since the programming time is very fast,
no
programming socket is required. The TEAclipper can be
鈥榣eaned鈥� against the plate-through holes shown.
It is strongly recommended that this connector is
included in circuits even if in-circuit programming is not
anticipated, since this allows you to upgrade the
firmware if necessary.
1mm hole dia
2.54mm spacing
Pin 1 indicated
by square pad
P
G
D
P
G
C
V
pp
V
ss
V
dd
Figure 8. Recommended plate-through connector design
Evaluation Board
The USB-Eval evaluation board is available for
evaluating USB-DAQ. Due to the variety of potential
implementations it is supplied unpopulated and a
prototyping area is provided. This will be necessary for
SD memory implementation (see Figure 9).
It is recommended that new users work with internal
memory to reduce the number of connections required
and then migrate it to test the circuit actually required.
Start, perhaps, with Figure 3 plus the 32768Hz oscillator.
Note
the
following
common
mistakes
during
development:
1.
Forgetting to press the 鈥楥ompile Now鈥� button
before copying the CONFIG.DAT to USB-DAQ.
2.
SD memory needs 3.3V power regulation.
It is strongly recommended that an Escape pin is used,
since without it the USB-DAQ chip can be rendered
unusable.
Figure 9. Evaluation board example
Code Examples
The following examples are provided in the development
kit to illustrate USB-DAQ usage.
DigitalAnalog.xls
This example logs the time, the analog pins AN1 and
AN0, and digital pin RA2 every three seconds. RA4 is
used to power the sensor, and so illustrates how to set
an output high our low.
Interrupts.xls
This file shows how interrupts are handled. It sets up a
falling-edge interrupt on INT2. When an interrupt occurs,
it flashes an LED on RA5 and logs the time to the file.
The interrupt flag is then re-enabled and USB-DAQ
goes back to sleep.
AnniLogic.xls
This anniversary reminder application demonstrates
basic arithmetic and how to read files. It also illustrates:
- How long file names can be presented to the user
while USB-DAQ accesses them using their short file
names.
- The use of the preprocessor to create meaningful
variable names, and overlaying them to re-use
memory.
- Calling subroutines.
鐩搁棞(gu膩n)PDF璩囨枡
PDF鎻忚堪
NCP698SQ13T1G IC REG LDO 1.3V .28A SC-82AB
HMC30DRAH-S734 CONN EDGECARD 60POS .100 R/A PCB
LFXP20E-5F256C IC FPGA 19.7KLUTS 188I/O 256-BGA
LFXP20E-4FN256I IC FPGA 19.7KLUTS 256FPBGA
LFXP20E-4F256I IC FPGA 19.7KLUTS 188I/O 256-BGA
鐩搁棞(gu膩n)浠g悊鍟�/鎶€琛�(sh霉)鍙冩暩(sh霉)
鍙冩暩(sh霉)鎻忚堪
USBDESKTOP 鍒堕€犲晢:ETI Systems 鍔熻兘鎻忚堪:Joystick;3-Axis;10 Programmable Buttons;Desktop Housing;USB Connector
USBDESKTOP-01 鍒堕€犲晢:ETI Systems 鍔熻兘鎻忚堪:Joystick
USBDF 鍒堕€犲晢:鏈煡寤犲 鍒堕€犲晢鍏ㄧū:鏈煡寤犲 鍔熻兘鎻忚堪:EMI FILTER AND LINE TERMINATION FOR USB DOWNSTREAM PORTS
USBDF01W5 鍔熻兘鎻忚堪:闆荤骞叉摼婵炬尝鍣� EMI Filter/Line Term RoHS:鍚� 鍒堕€犲晢:STMicroelectronics 闆诲:12 pF 闆昏矾椤炲瀷: 鏈€澶х洿娴侀浕娴�: 鏈€澶х洿娴侀浕闃�: 闆诲椤嶅畾鍊�:6 V 瀹瑰樊: 绔帴椤炲瀷:SMD/SMT 宸ヤ綔婧害鑼冨湇:- 30 C to + 85 C 绯诲垪:EMIF03
USBDF01W6 鍒堕€犲晢:STMicroelectronics 鍔熻兘鎻忚堪: