driving multiple port pins with user modules

A catchall for PSoC Mixed-Signal Array (microcontroller) discussions not captured by the other forums.

Moderator: ericb

driving multiple port pins with user modules

Postby shazan » Fri Jan 24, 2014 7:23 pm

I am on a new project with a CY8C28X33 chip.
I am in a project where I need to send PWM data over 4 port pins, 2 at a time.
During one mode I need to send the same data (say "A") over P2.0 and P2.6, along with the same data (say "B") over p2.2 and p2.4
During another mode I need to send "C" over p2.0 and p2.4, while p2.2 and p2.6 should carry "D".

Any way to do this pin jugglery without using the AMUX? The AMUX(N) is used elsewhere with analog inputs constantly being pulled in to an ADC thats running all the time.
Or do I definitely need to get an external mux/switch?
Bite-Size Cheese
Bite-Size Cheese
Posts: 19
Joined: Fri Aug 08, 2008 9:44 am

Re: driving multiple port pins with user modules

Postby danadak » Sat Jan 25, 2014 4:14 am

Yes, using register writes to control the routes to/from the global busses
that the pins see. You can also control what buss the pin is connected to.
Consult register and architecture TRM (Technical Reference Manual).

Also general principles here http://www.cypress.com/?rID=2901

Regards, Dana.
Field Application Engineer
KB1RHB Mostly listen :)
Semi Retired
User avatar
The Big Cheese
The Big Cheese
Posts: 2008
Joined: Thu Dec 27, 2007 8:42 am
Location: New Hampshire

Return to “%s” PSoC1 General

Who is online

Users browsing this forum: Bing [Bot] and 1 guest