AMX_IN |= 0x01;

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

cross mob
chmoc_1567941
Level 4
Level 4

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

   

can anyone explain me in detail....

0 Likes
5 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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
lock attach
Attachments are accessible only for community members.
chmoc_1567941
Level 4
Level 4

can u explain me for this project???

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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

   

 

   

Bob

0 Likes
chmoc_1567941
Level 4
Level 4

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
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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