Anonymous
Not applicable
Feb 22, 2013
04:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 22, 2013
04:35 AM
Can i make actve_high setting in LED while placement instead of following code in main.c. //Set port drive modes for LEDs
PRT0DM0 |= 0b00100010; //strong on P0[5],P0[1]
PRT0DM1 &=~0b00100010;
PRT1DM0 |= 0b10100100; //strong on P1[2]
PRT1DM1 &=~0b10100100;
PRT2DM0 |= 0b10100000; //strong on P2[5],P2[7]
PRT2DM1 &=~0b10100000;
Labels
- Labels:
-
PSoC 1
4 Replies
Anonymous
Not applicable
Feb 22, 2013
05:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 22, 2013
05:25 AM
Yes, You can always set the drive modes and initial value in the pin settings. The firware register settings allow you to set and change at run time.
Anonymous
Not applicable
Feb 22, 2013
05:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 22, 2013
05:30 AM
Thank You. It works.
Feb 22, 2013
05:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 22, 2013
05:37 AM
You can alwyas use the LED module as a simple way of controlling LED.
Has advantage that if mixed I/O in port it instantiates shadow registers
to avoid R modify W problems.
Regards, Dana.
Anonymous
Not applicable
Feb 23, 2013
05:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 23, 2013
05:36 AM
Thanks Dana.