Child pages
  • Real-Time Clock MCP79410 Pmod Controller (VHDL)

Versions Compared

Key

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

...

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

RTCC Pmod

Serial clock of I2C bus

sda

1

inout

standard logic

RTCC 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 RTCC Pmod did not properly acknowledge a transaction

set_clk_ena

1

In

standard logic

user logic

Set clock enable; toggling this bit to '1' for a system clock cycle latches in the input clock settings and initiates a transaction with the RTCC to set the time and date, and to start the RTCC onboard oscillator to begin timekeeping

set_seconds

7

In

standard logic vector

user logic

Seconds input clock setting; 2 digits in BCD format (00 to 59)

set_minutes

7

In

standard logic vector

user logic

Minutes input clock setting; 2 digits in BCD format (00 to 59)

set_hours

5

In

standard logic vector

user logic

Hours input clock setting; 2 digits in BCD format (00 to 12)

set_am_pm

1

In

standard logic

user logic

AM/PM input clock setting; AM = '0', PM = '1'

set_weekday

3

In

standard logic vector

user logic

Weekday input clock setting; 1 digit in BCD format (1 to 7)

set_day

6

In

standard logic vector

user logic

Day of month input clock setting; 2 digits in BCD format (01 to 31)

set_month

45

In

standard logic vector

user logic

Month input clock setting; 2 digits in BCD format (00 to 12)

set_year

8

In

standard logic vector

user logic

Year input clock setting; 2 digits in BCD format (00 to 99)

set_leapyear

1

In

standard logic

user logic

Set leapyear ('1') or not a leapyear ('0')

seconds

7

out

standard logic vector

user logic

Seconds clock output; 2 digits in BCD format (00 to 59)

minutes

7

out

standard logic vector

user logic

Minutes clock output; 2 digits in BCD format (00 to 59)

hours

5

out

standard logic vector

user logic

Hours clock output; 2 digits in BCD format (00 to 12)

am_pm

1

out

standard logic

user logic

AM/PM clock output; AM = '0', PM = '1'

weekday

3

out

standard logic vector

user logic

Weekday clock output; 1 digit in BCD format (1 to 7)

day

6

out

standard logic vector

user logic

Day of month clock output; 2 digits in BCD format (01 to 31)

month

45

out

standard logic vector

user logic

Month clock output; 2 digits in BCD format (00 to 12)

year

8

out

standard logic vector

user logic

Year clock output; 2 digits in BCD format (00 to 99)

...