PaxInstruments / PaxInstruments-LabWiz-firmware

Firmware for the Pax Instruments LabWiz board.
0 stars 1 forks source link

SW_PWR #10

Closed charlespax closed 7 years ago

charlespax commented 8 years ago

How should PA0 be configured? When putting the processor to sleep it should act to wake up the system. During normal operation it should be an input.

screen shot 2016-08-14 at 21 48 15

protological commented 7 years ago

Why not attach the PWR button to an EXTI interrupt. If SW_C is moved to EXTI1 could the PWR be EXTI 4? (or vice-versa) External interrupts should be able to wake the processor.

charlespax commented 7 years ago

When the unit is put into standby PA0 would be configured as SYS_WKUP because that is the only pin that will wake the device from that state. During normal operation, however, I think it can be configured however you need. SP_PWR should stay on PA0 though I'm not sure if we will actually utilize the standby function.

screen shot 2016-11-30 at 09 52 23

I posted this issue mainly to ask how the ioc file should be configured, which is your domain. I imagine it should be configured to whatever that pin will be during normal operation, which would be EXTI0.

charlespax commented 7 years ago

PA0 is configured as GPIO_EXTI0 in the v0.4 .ioc file