using timers, PSoC

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
AmCi_3754291
Level 2
Level 2

Hey,

Probably a nube question but here it goes.

I was trying to use a timer to time stamp the occurrence of a task in my application.

I tried starting from the iotExpert project that I found here: https://iotexpert.com/2017/05/17/psoc-5-timer-circuit-debug/

However, I never seem to get a counter reading. My period is always 9999 and I can't figure out what I'm doing wrong.

Please find attached a bundle of my project

0 Likes
1 Solution
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

I think you assumed that the initial level of Channel_1 is low with

001a-Channel_1_pin.JPG

But since it's an open drain bidirectional, I'm afraid that you need an external pull down or external signal attached.

So I changed the Channel_1 to a Resistive pull down

001-Channel_1_pin.JPG

Then your program seems start working.

000-teraterm-log.JPG

If you had an external signal attached to the pin, may be the initial project was also working.

moto

View solution in original post

0 Likes
1 Reply
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

I think you assumed that the initial level of Channel_1 is low with

001a-Channel_1_pin.JPG

But since it's an open drain bidirectional, I'm afraid that you need an external pull down or external signal attached.

So I changed the Channel_1 to a Resistive pull down

001-Channel_1_pin.JPG

Then your program seems start working.

000-teraterm-log.JPG

If you had an external signal attached to the pin, may be the initial project was also working.

moto

0 Likes