How to read GOE[x] from the C program ?

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

cross mob
Anonymous
Not applicable

Hi,

   

 

   

I want to read the internal signals inside the psoc1, like GOE or GOO.

   

I know how to read any input/output pin from the psoc1

   

does I have to route the GOE to an output pin and then read the output pin

   

or is there a direct way to read all signals inside the psoc1 ?

   

 

   

thanks.

0 Likes
1 Solution
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

One way would place digital buffer, config it to interrupt, then route

   

the GOO buss to a GIE buss then to buffer. Use interrupt to indicate state

   

of GOO.

   

 

   

Regards, Dana.

View solution in original post

0 Likes
5 Replies
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

No, read the respective registers ( read the register TRM, Technical Reference Manual) -

   

 

   

   

 

   

0 Likes
Anonymous
Not applicable

but these registers GDI_O_IN are for connecting the GOO from output to inputs, it's not to read their value ?

   

I generate a signal from the digital blocs, and I want to read it without using interrupts, and without outputing it to an external pin

   

how to do that ?

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Are you trying to read the port register, PRTxDR ?

   

 

   

    

   

         

   

http://www.cypress.com/?rID=2900     AN2094 - PSoC® 1 - Getting Started with GPIO

   

https://www.youtube.com/watch?v=tei6q5M3C0g       Shadow Registers

   

http://www.cypress.com/?rID=39497     Shadow Registers

   

 

   

 

   

 

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

Are you trying to read the port register, PRTxDR ?

   

 

   

Yes and no. as I said earlier, I know how to read PRTxDR by program

   

I would like to read the global Outbus Bus without having to route that bus to an output pin.

   

is this possible with a psoc1 ?

   

thanks.

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

One way would place digital buffer, config it to interrupt, then route

   

the GOO buss to a GIE buss then to buffer. Use interrupt to indicate state

   

of GOO.

   

 

   

Regards, Dana.

0 Likes