Child pages
  • Humidity and Temperature Sensor Pmod Controller (VHDL)

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table 1.  Humidity Measurement Times

Humidity Resolution (bits)

Humidity Measurement Time (ms)

8

2.5

11

3.85

14

6.5

Temperature Resolution

The generic parameter temperature_resolution sets the resolution of the temperature measurements and the data width of the temperature output.  Valid options are 11 and 14 bits.  The default is 14 bits.  Setting temperature_resolution to any invalid value also results in a resolution of 14 bits.

...

Table 2.  Temperature Measurement Times

Temperature Resolution (bits)

Temperature Measurement Time (ms)

11

3.65

14

6.35

Port Descriptions

Table 3 describes the Hygrometer Pmod Controller’s ports.

Table 3.  Port Descriptions

Port

Width

Mode

Data Type

Interface

Description

clk

1

in

standard logic

user logic

System clock

reset_n

1

in

standard logic

user logic

Asynchronous active low reset

scl

1

inout

standard logic

Hygrometer Pmod

Serial clock of I2C bus

sda

1

inout

standard logic

Hygrometer Pmod

Serial data of I2C bus

i2c_ack_err

1

out

standard logic

user logic

I2C communication error flag: '0' = no communication error, '1' = the Hygrometer Pmod did not properly acknowledge a transaction

relative_humidity

N*

out

standard logic vector

user logic

Relative humidity data

temperature

M^

out

standard logic vector

user logic

Temperature data

Notes

* N is the specified relative humidity resolution, set by the humidity_resolution generic

...

Table 4.  Hygrometer Pmod Pinout and Connections to the Hygrometer Pmod Controller

Pmod Pin Number

Hygrometer Pmod Port

Hygrometer Pmod Controller Port

1

NC

-

2

NC

-

3

SCL

scl

4

SDA

sda

5

GND

-

6

VCC

-

 The Pmod also has two jumpers.  These must be enabled (i.e. connected) to connect the required I2C pull-up resisters for SCL and SDA.

...