im Datenblatt der XBee Module ist im Kapitel: „Pin Signals“ von „Analog Input / Digital I/O“ die Rede.
Gibt es diese Pins wirklich und wenn ja wie kann man sie nutzen
MST
PC: würde mir dann eine XBee-Steckdose mit Rückmeldung des tatsächlich fließenden Strom bauen … :rolleyes:
… dann sammelt mal Ideen: PIR (Bewegung), Temperatur, Feuchte, Helligkeit, Luftgüte, LED, Piezo, Sprachspeicher-Modul …
… vielleicht sollte man dann doch noch ein ATMEL spendieren … :rolleyes:
… das du auch gleich immer übertreiben musst. Die Temperatur u. ggf. Feucht würde mir am Touchpanel schon reichen. Die programmierei des Atmels wollte ich mir damit ja sparen. Das habe ich jetzt ja schon beim Display3000 Modul.
Doc
MaxStream PHY Low Power Operation
The “XBee-Phy.h” file is supplied in the 802.15.4, SMAC and ZigBee “Source” folders (supplied with this document). This file contains a prototype for the XBee_Phy_IO() function. This function will set the PHY-level I/O lines (and A/D Converter, XBee-PRO only) for either low-power or active operating modes based on the argument (PHY_SLEEP or PHY_WAKE respectively). This file can be added to the 802.15.4, SMAC or ZigBee projects if low power operation is required.
Application Low Power Notes
Several steps are listed below to help reduce power consumption when developing an application. These steps are supplemental to the process described in the Freescale documentation.
To Enter Sleep:
Configure the module ID pin (PTA1) as a low driving output: PTAPE_PTAPE1 = 0; PTAD_PTAD1 = 0; PTADD_PTADD1 = 1;
Call XBee_Phy_IO() to configure the PHY IO lines for sleep: XBee_Phy_IO(PHY_SLEEP);
(XBee_Phy_IO() is defined in “XBee-Phy.h”. See “MaxStream PHY Low Power Operation” section.)
Set the MAC Attribute gMPibRxOnWhenIdle_c to false to disable the receiver when idle.
Call AttEnable. (This macro is defined in Target_XBee.h.)
If using the Freescale ASP layer or Power Library, send the sleep request primitive (Hibernate Request, Doze Request, etc) to sleep the MC13193.
If applicable, issue the Stop command to sleep the MC9S08GT60: asm STOP; (see MC9S08GT60 datasheet for information on Stop modes.)
To Wake from Sleep:
AttDisable / AttEnable may need to be called to wake the MC13193 from sleep if it is in Hibernate or Acoma mode.
Set the MAC Attribute gMPibRxOnWhenIdle_c to true to enable the receiver when idle. This may require setting the channel again.
Setup the module ID pin (PTA1) as an input with the pull-up enabled: PTAPE_PTAPE1 = 1; PTADD_PTADD1 = 0;
Call XBee_Phy_IO() to configure the PHY IO lines for wake: XBee_Phy_IO(PHY_WAKE);