You are here

about Amux in CY8C28445 | Cypress Semiconductor

about Amux in CY8C28445

Summary: 4 Replies, Latest post by MSUR on 18 Dec 2012 08:59 AM PST
Verified Answers: 0
Last post
Log in to post new comments.
Arief's picture
1 post

Dear PSOC,

I am trying to use module AMuxN in CY8C28445 from wizard and its datasheet. 
I am going to set AMUX into single mode with 14 analog inputs.
but i found the wierd error when compiling.
The error is: cannot include source file "AMuxN.h"; file not found!!
why PSOC did not attach the AMuxN.h file in PSOC Designer 5.3 ??

besides, I also try to use article form Mr Ganesh to build my AMUX but still not work when compiling.
there is an error that is: 
on sintax--> DAC_CR &= ~0x80; ( undeclared identifier `DAC_CR')
why?? would you give solution??
user_1377889's picture
9281 posts

It is always advisable to post your complete project here whenever possible (use the archive-function provided in PSoC Developer 5.3). This will help us to distinguish between naming-errors or mis-installations for instance.

Otherwise our advices to overcome the errors are more or less guesses into the blue.



PS: If you do not use Developer 5.3 I would suggest to update to the latest version


rjvb's picture
Cypress Employee
90 posts

Can you please attach your project?


-Rajiv Badiger

user_27941315's picture
79 posts

This problem may happen if you compile your code and that you have just modify something in the configuration of the User Module or you changed the User Module name.  In both case you need to generate the configuration file by pressing F6 to build the whole project. 



msur's picture
Cypress Employee
29 posts

Hello Arief,


The cause for the error can as trivial as EricS point, either you did not build (F6) the project after renaming your UM instance to 'AMuxN' or you may not have changed the name of the UM instance from the default 'AMuxN_1' to 'AMuxN' to comply with the UM sample code (Please find attached a snapshot showing the error you got).


For 2, there is no register as DAC_CR, it is either IDAC_CR0 or IDAC_CR1 (might have been pointed as IDAC_CRx). And for AMUX case, i believe IDAC_CR0 is the register whose MSB bit needs to be cleared for spliting the MUX. refer CY8C28xxx TRM for more details. I believe we had DAC_CRx notation in older versions of designer which got changed to IDAC_CRx to be in alignment with TRM register map in the latest designer releases.




Log in to post new comments.