PSoC1 DigBuf Input 1, can you change the input high to Low status and vice versa with manipulating registers in main.c , or is Stop and start the module the only solution? Tips are welcome.

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

cross mob
1 Solution
SampathS_11
Moderator
Moderator
Moderator
250 sign-ins 250 solutions authored 5 questions asked

Hello @LuSa_1231216 ,

 

Assuming the name is DigBuf_1, you can access the input select register of this DigBuf with the variable DigBuf_1_INPUT_REG. You can see this definition in DigBuf_1.h, which will be under the "Library Header Files" node of your project.

Now, referring to the Technical Reference Manual, the corresponding register can be DxBxxIN, page 256. The input can be set to high or low, by means of bits[3:0]; [0000] for Input Low, and [0001] for Input High.

Best regards,

Sampath Selvaraj

View solution in original post

0 Likes
1 Reply
SampathS_11
Moderator
Moderator
Moderator
250 sign-ins 250 solutions authored 5 questions asked

Hello @LuSa_1231216 ,

 

Assuming the name is DigBuf_1, you can access the input select register of this DigBuf with the variable DigBuf_1_INPUT_REG. You can see this definition in DigBuf_1.h, which will be under the "Library Header Files" node of your project.

Now, referring to the Technical Reference Manual, the corresponding register can be DxBxxIN, page 256. The input can be set to high or low, by means of bits[3:0]; [0000] for Input Low, and [0001] for Input High.

Best regards,

Sampath Selvaraj

0 Likes