How to SRES in PSOC5

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

cross mob
lock attach
Attachments are accessible only for community members.
Alexander
Level 1
Level 1
First reply posted First question asked Welcome!

Hi All, 

I'm using in PSOC5 - CY8C5868AXI-LP035.

I've tried to figured out how to software the pin XRES but without successful.

There any options how can to software the XRES so i can do reset to PSOC without external intervention?

 

Thanks for any help.

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi, 

I tried with my CY8CKIT-059 (CY8C5888LTI-LP097).

Hopefully C source should be usable for your board/device, too.

schematic

004-schematic.JPG

pin_1 config

008_pin_1_config.JPG

isr_1 config

007-isr_1_config.JPG

pins (for CY8CKIT-059)

005-pins.JPG

main.c

006-main_c.JPG

Tera Term output

003-TeraTerm-log.JPG

moto

View solution in original post

0 Likes
8 Replies
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

I wonder if "CySoftwareReset()" can be used for your purpose.

moto

0 Likes

Hi,

I've seen this function in several posts but couldn't find in datasheets where it exists to understand how to use it.

can you please refer where can I find information about this function? which type of variable Is it?

 

thanks for your reply.

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

Assuming that you are using PSoC Creator,

CySoftwareReset() is defined in CyLib.c as below.

001-CySoftwareReset.JPG

You can also directly set that bit using

CY_LIB_RESET_CR2_REG |= CY_LIB_RESET_CR2_RESET ;

For the meaning of the bit and register, 

please refer to PSoC 5LP Register TRM

https://www.cypress.com/documentation/technical-reference-manuals/psoc-5lp-registers-trm-technical-r...

002-RESET_CR2.JPG

moto

 

0 Likes
lock attach
Attachments are accessible only for community members.

Hi,

Found if now.

I'm programing the the project into the chip and I have code in Visual Studio, how can I use this function when I need to do reset to PSOC?

isr_1 can help me with it?

Thanks for your help.

0 Likes
lock attach
Attachments are accessible only for community members.
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi, 

I tried with my CY8CKIT-059 (CY8C5888LTI-LP097).

Hopefully C source should be usable for your board/device, too.

schematic

004-schematic.JPG

pin_1 config

008_pin_1_config.JPG

isr_1 config

007-isr_1_config.JPG

pins (for CY8CKIT-059)

005-pins.JPG

main.c

006-main_c.JPG

Tera Term output

003-TeraTerm-log.JPG

moto

0 Likes

Hi, 
thanks so much.
little question - can you please explain when does the function CY_ISR is execute? 

 

Thanks!

0 Likes

Alexander,

CY_ISR gets executed when the SW gets pressed.

Len
"Engineering is an Art. The Art of Compromise."
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Len-san,

Thank you 😉

moto

0 Likes