DM180021 Microchip Technology Inc., DM180021 Datasheet - Page 40

no-image

DM180021

Manufacturer Part Number
DM180021
Description
MPLAB Starter Kit for PIC18F MCU
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of DM180021

Contents
MicroSD™ memory cardAcceleration sensorOLED display
Lead Free Status / Rohs Status
RoHS Compliant part

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
DM180021
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
DM180021
Manufacturer:
MICROCHIP
Quantity:
12 000
MPLAB Starter Kit for PIC18F User’s Guide
DS51852A-page 36
B.3.2
The AppPowerReady() function returns a BOOL data type that will return TRUE if the
soft start is complete or FALSE if it is not. This function should be called periodically
during the soft start to insure that the soft start continues ramping properly.
If APP_POWER_AUTO_ENABLE is defined, AppPowerReady() will automatically call
AppPowerEnable() if it is not already started. In light of the Total Application Current
Draw specification of 100 mA, this function should not be called until after the device is
enumerated. The application code that relies on components that are gated by the soft
start should wait until AppPowerReady() returns TRUE before running.
EXAMPLE B-1:
B.3.3
The AppPowerDisable() function turns the power off to the application. This func-
tion should be used when the device is going to go into Suspend mode in order to meet
the USB suspend current specification.
EXAMPLE B-2:
After the device resumes from suspend, the AppPowerEnable() and
AppPowerReady() functions are used again to restart the application power. In this
demo, that is done through the same calls in the ProcessIO() function that initially
powered the device on start-up.
// User Application USB tasks
if((USBDeviceState < CONFIGURED_STATE)||(USBSuspendControl==1))
// Soft Start the APP_VDD
if(AppPowerReady() == FALSE) return;
// The rest of the application code down here
// (once power is enabled).
void USBCBSuspend(void)
{
}
return;
//…
AppPowerDisable();
//…
Sleep();
//…
AppPowerReady()
AppPowerDisable()
USING AppPowerReady()TO CONTROL APPLICATION
START-UP
USING AppPowerDisable()
© 2009 Microchip Technology Inc.

Related parts for DM180021