Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| pmod:pmodcmps:reference-manual [2021/10/13 20:57] – external edit 127.0.0.1 | pmod:pmodcmps:reference-manual [2022/10/04 11:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Pmod CMPS Reference Manual ====== | ||
| + | <WRAP round info 650px> | ||
| + | ===Note=== | ||
| + | The Pmod CMPS has been replaced by the [[https:// | ||
| + | </ | ||
| + | |||
| + | |||
| + | The Digilent Pmod CMPS (Revision A) features the popular [[http:// | ||
| + | |||
| + | {{Digilent Image Gallery | ||
| + | | image = {{: | ||
| + | | image = {{: | ||
| + | | image = {{: | ||
| + | | image = {{: | ||
| + | }} | ||
| + | |||
| + | == Download This Reference Manual == | ||
| + | * {{: | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ===== Features ===== | ||
| + | * 3-axis digital compass | ||
| + | * 2 milli-gauss Field Resolution in ±8 gauss fields | ||
| + | * 160 %%Hz%% maximum data output rate | ||
| + | * Optional pull-up resistors for SCL and SDA pins | ||
| + | * 2×4-pin connector with I2C interface | ||
| + | |||
| + | ---- | ||
| + | =====Functional Description ===== | ||
| + | The %%Pmod CMPS%% utilizes Honeywell' | ||
| + | |||
| + | ---- | ||
| + | ===== Interfacing with the Pmod===== | ||
| + | The %%Pmod CMPS%% communicates with the host board via the [[pmod: | ||
| + | |||
| + | By default, the %%Pmod CMPS%% starts out in Single Measurement mode so that the compass takes a single measurement, | ||
| + | |||
| + | When reading data from the %%Pmod CMPS%%, all six data registers, corresponding to the upper and lower bytes of each Cartesian coordinate direction, must be read. Since the internal register address pointer automatically increments after a register has been successfully read, it is possible to read from all six registers with a single command. An example how this might look is given below: | ||
| + | |||
| + | ^ Command byte ||||||||^ | ||
| + | |0|0|1|1|1|1|0|1|(ACK)|0|0|0|0|0|0|1|1|(ACK)| | ||
| + | ^ MSB X ||||||||^ | ||
| + | |SX|SX|SX|SX|sb|MSB|b9|b8|(ACK)|b7|b6|b5|b4|b3|b2|b1|b0|(ACK)| | ||
| + | ^ MSB Z ||||||||^ | ||
| + | |SX|SX|SX|SX|sb|MSB|b9|b8|(ACK)|b7|b6|b5|b4|b3|b2|b1|b0|(ACK)| | ||
| + | ^ MSB Y ||||||||^ | ||
| + | |SX|SX|SX|SX|sb|MSB|b9|b8|(ACK)|b7|b6|b5|b4|b3|b2|b1|b0|(STOP)| | ||
| + | |||
| + | ** Note* ** SX stands for a sign extension of the sign bit (sb) | ||
| + | |||
| + | ==== Pinout Description Table ==== | ||
| + | ^ Header J1 | ||
| + | ^ Pins ^ Signal | ||
| + | | 1 & 5 | ||
| + | | 2 & 6 | ||
| + | | 3 & 7 | ||
| + | | 4 & 8 | ||
| + | | | ||
| + | | ::: | ::: | ||
| + | |||
| + | **Table 1** Connector J1- Pin Descriptions as labeled on the Pmod | ||
| + | |||
| + | The %%Pmod CMPS%% also offers a self test mode to help calibrate any data that is being received from the module. | ||
| + | |||
| + | Any external power applied to the %%Pmod CMPS%% must be within 2.16V and 3.6V; therefore, when using Pmod headers on Digilent system boards, the supply voltage must be at 3.3V. | ||
| + | ---- | ||
| + | ===== Physical Dimensions ===== | ||
| + | The pins on the pin header are spaced 100 mil apart. The PCB is 0.8 inches long on the sides parallel to the pins on the pin header and 0.8 inches long on the sides perpendicular to the pin header. | ||
| + | ---- | ||
| + | ===== Additional Information ===== | ||
| + | The schematics of the %%Pmod CMPS%% are available {{reference: | ||
| + | |||
| + | Example code demonstrating how to get information from the %%Pmod CMPS%% can be found [[pmod: | ||
| + | |||
| + | If you have any questions or comments about the %%Pmod CMPS%%, feel free to post them under the appropriate section (" | ||

