Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Interference_Simple
Diff: PMRC16ch.cpp
- Revision:
- 18:049283936e3f
- Parent:
- 17:08a68860396b
- Child:
- 20:26972de3cf90
--- a/PMRC16ch.cpp Tue Jun 26 12:48:46 2018 +0000 +++ b/PMRC16ch.cpp Tue Jun 26 13:00:40 2018 +0000 @@ -34,23 +34,18 @@ { m_CLR = 1; m_SCK = m_RCK = 0; - m_PMRC_state = NaN; - allGround(); + //reset shiftresister + m_CLR = 0; + update(); + //enable insertion data to SR + m_CLR = 1; + m_PMRC_state = ALLHiZ; m_PMRC_POL = Cathodic; } char PMRC16ch::allGround() { if (m_PMRC_state == ALLGROUND) return 1; - /* - //reset shiftresister - m_CLR = 0; - update(); - //enable insertion data to SR - m_CLR = 1; - */ - //set all channel gnd - //shiftby(16); sweep(); upload(); return static_cast<char>(m_PMRC_state = ALLGROUND);