- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello everybody:
I want to use pins status to monitor my process' running status,not in debugging.
By using software program to set pin's logic status(high or low), I want to watch my program's running status!
The attached file describes the details!
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I suppose it is "CyPins_SetPin(Pin_1);" to set your monitor-output.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Open the file Pin_1_aliases.h. You will see the macro for pin configuration register. It will be as below.
#define Pin_1_0 Pin_1__0__PC
Therfore use API as below to set this pin high.
CyPins_SetPin(Pin_1_0).
OR
You can use your method without using any macros and use original register names as mentioned in cydevice_trm.h.
CyPins_SetPin(CYREG_PRT1_PC5).
Note that you used "PC0" which means port 1 and pin 0 but your pin is placed at P1[5], therfore you should use PC5.
Thank you,
Pavan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your friendly reply! and i can solve my problem as soon as possible!