所需E币: 4
时间: 2019-12-24 21:21
大小: 265.32KB
TheMCP6S21/2/6/8familyofone,two,sixoreightchannelProgrammableGainAmplifiers(PGA)commu-nicateusingastandard3-wireSerialPeripheralInter-face(SPI™)protocol.ThisapplicationnoteshowshowtoprogramthesixchannelMCP6S26PGAgains,channelsandshutdownregistersusingthePIC16C505microcontroller.ThePIC16C505microcontrollerdoesnothaveahard-wareSPImodule,therefore,afirmwareSPI(BitBang)methodisusedtoprogramthePGA.TheMCP6S2XEvaluationBoardwasusedtodevelopthisapplicationnotefirmware.Foradditionalinformation,refertotheMCP6S2XEvaluationBoardUser’sGuide(DS51327),MCP6S21/2/6/8PGAdatasheet(DS21117)andPIC16C505datasheet(DS40192).MAN248InterfacingMCP6S2XPGAstoPICmicroMicrocontrollerAuthor:EzanaHaileCOMMUNICATIONMicrochipTechnologyInc.Figure1showstheSPIcommunicationformatwiththeclockidlelowandtheserialdatalatchedattherisingINTRODUCTIONedgeoftheclock.Thisformatissometimesreferredtoas“0,0”mode.InstructionsfortheMCP6S21/2/6/8TheMCP6S21/2/6/8familyofone,two,sixoreight……