PCF8583 use as counter with Interrupt each 1, 100, 10.000 or 1.000.000 counter events

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

PCF8583 use as counter with Interrupt each 1, 100, 10.000 or 1.000.000 counter events

1,270 次查看
joachimpäper
Contributor I

Hello,

I want to use a PCF8583 only as pulse-counter. That works...

For each pulse the countervalue (01h-03h) increase as expected. It works to set a alarmvalue (09h-0Bh) and get a Interrupt on Pin 7 when the countervalue is the same as the alarmvalue.

But what I don't get working ist to use the timeralarm.

I understand that I must

- set bit 0-2 in 08h > 0

- set bit 3 and bit 6 in 08h to 1

But I don't get an Interrupt in this configuration...

Is it possible at all to get an interrupt each 1, 100, 10.000 or 1.000.000 pulses in the counter-mode?

Must something set in 07h (timer)?

Joachim Päper

0 项奖励
回复
2 回复数

1,063 次查看
david_diaz
NXP Employee
NXP Employee

Hello Joachim,

I hope all is great with you.

An alarm signal is generated when the contents of the alarm registers match bit-by-bit the contents of the involved counter registers.

Regarding the timer alarm, as the alarm that you described, it will be set when the timer value is the same than the alarm timer register (location 0Fh).

Besides of configuring the timer alarm, have you configured the timer register? The timer (location 07h) is enabled by setting the control and status register to XX0X X1XX.

 

Regards,

David

0 项奖励
回复

1,063 次查看
joachimpäper
Contributor I

... I see many questions in this community, a few views and no answers here?

Is there a support from NXP themself here???

Joachim Päper

0 项奖励
回复