cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

chmoc_1567941
New Contributor

what is the use of AMX_IN in the program...??

   

can anyone explain me in detail....

0 Likes
5 Replies
JoMe_264151
Expert II

Not without having a look into that program.

   

It is a C language statement that performs

   

Take the value of the variable AMUX_IN, set the bit number 0 to logical 1 and store the result in AMUX_IN again.

   

Here is a link to a C-language manual.

   

 

   

Bob

0 Likes
chmoc_1567941
New Contributor

can u explain me for this project???

0 Likes
JoMe_264151
Expert II

AMX_IN is the PSoC internal analog multiplexer that connects the required signals to the ADC.

   

 

   

Bob

0 Likes
chmoc_1567941
New Contributor

still i dont understand how can i connect pin through this AMX_IN Register....can u explain me with some small example..??...i trapped in this register from past 2 days... 

0 Likes
JoMe_264151
Expert II

Read datasheet for AMUX component (Analog Multiplexor). Might be that in the project a trick is used when bit 0 is turned on. Disgusting is: The author did not use an AMUX component (which is pure software) but accessing the AMX- registers programmatically.

   

Learn and use the AMUX component.

   

Or

   

Get hands on a quite more modern PSoC design as a PSoC5 for few money.

   

 

   

Bob

0 Likes