PICmicro MCU与MCP6S2X PGA接口
TheMCP6S21/2/6/8familyofone,two,sixoreight
channelProgrammableGainAmplifiers(PGA)commu-
nicateusingastandard3-wireSerialPeripheralInter-
face(SPI™)protocol.Thisapplicationnoteshowshow
toprogramthesixchannelMCP6S26PGAgains,
channelsandshutdownregistersusingthePIC16C505
microcontroller.
ThePIC16C505microcontrollerdoesnothaveahard-
wareSPImodule,therefore,afirmwareSPI(BitBang)
methodisusedtoprogramthePGA.TheMCP6S2X
EvaluationBoardwasusedtodevelopthisapplication
notefirmware.Foradditionalinformation,refertothe
MCP6S2XEvaluationBoardUser’sGuide(DS51327),
MCP6S21/2/6/8PGAdatasheet(DS21117)and
PIC16C505datasheet(DS40192).MAN248InterfacingMCP6S2XPGAstoPICmicroMicrocontrollerAuthor:EzanaHaileCOMMUNICATIONMicrochipTechnologyInc.Figure1showstheSPIcommunicationformatwiththeclockidlelowandtheserialdatalatchedattherisingINTRODUCTIONedgeoftheclock.Thisformatissometimesreferredtoas“0,0”mode.InstructionsfortheMCP6S21/2/6/8TheMCP6S21/2/6/8familyofone,two,sixoreight