Pin 20 is currently connected to ground, If I cut the trace for this pin and break it out myself can I do something with it? Can I use a digitial pin, or will I have to use some kind of transistor? I need to bring this pin high when the arduino is in sleep mode and then low to init and send data.
spidermonkey04 wrote:If you plan to always upload data to the same computer/server then you could hardcode that MAC address into the chip to save time on connecting. Also there are commands possible to turn off/on the radio manually, which might make it unnecessary to screw with pin 20. I'll do some experiments later, but let us know if you figure it out.
What kind of power saving are you doing on the arduino?
---Jared
spidermonkey04 wrote:Nope, I'll help look though. Like Greg mentioned, I remember seeing it in the MicroChip example code, specifically TcpIP stack ver. 5.20.
---Jared
/******************************************************************************
* Function: void MACPowerDown(void)
*
* PreCondition: SPI bus must be initialized (done in MACInit()).
*
* Input: None
*
* Output: None
*
* Side Effects: None
*
* Overview: MACPowerDown puts the ZG2100 in low power sleep mode. In
* sleep mode, no packets can be transmitted or received.
* All MAC and PHY registers should not be accessed.
*
* Note: If a packet is being transmitted while this function is
* called, this function will block until it is it complete.
* If anything is being received, it will be completed.
*****************************************************************************/
void MACPowerDown(void)
{
}//end MACPowerDown
/******************************************************************************
* Function: void MACPowerUp(void)
*
* PreCondition: SPI bus must be initialized (done in MACInit()).
*
* Input: None
*
* Output: None
*
* Side Effects: None
*
* Overview: MACPowerUp returns the ZG2100 back to normal operation
* after a previous call to MACPowerDown(). Calling this
* function when already powered up will have no effect.
*
* Note: If a link partner is present, it will take 10s of
* milliseconds before a new link will be established after
* waking up. While not linked, packets which are
* transmitted will most likely be lost. MACIsLinked() can
* be called to determine if a link is established.
*****************************************************************************/
void MACPowerUp(void)
{
}//end MACPowerUp
Return to Sketches and Applications
Users browsing this forum: Google [Bot] and 1 guest