Professional Documents
Culture Documents
www.kcwirefree.com
Firmware Features
WirelessDataCommunicationsSystem EmbeddedBluetoothSerialPortProfile(SPP) RemoteCommandAndControl LowPowerConnectionModes<500A EasyToUseATCommandInterfaceUsingUART OEMProgrammableConfiguration CustomFirmwareAvailable 26.9mmx15.2mmx2.5mm
Hardware Features
CSRBlueCore4ExtChipset Bluetoothv2.1+EDR 2.4GHzClass2Radio RangeTypicallyExceeds20m HighSpeedDataRateUpTo3Mbps 12DigitalProgrammableI/OPins 2AnalogProgrammableI/OPins UART,USB,SPIInterfaces OnboardAntenna 8MbitFlashMemory
Applications
SerialCableReplacement RemoteSensors MedicalMonitoring BarCodeReaders RFIDTagReaders CreditCardReaders
Description
TheKC21seriesdatamodulesarepreengineered,prequalified,andhighlytunedsurfacemountPCBmodulesthat providefullyembedded,readytouseBluetoothwirelesstechnology.Multisurfacepadsprovidebothbottompadsfor highvolumereflowsolderingandedgepadsforlowvolumehandsoldering. TheKC21offersreprogrammable,embeddedfirmwareforserialcablereplacementdeployingtheBluetoothSerialPort Profile(SPP).OEMspecificparametersandsettingscanbeeasilyloadedintothesemodules. OurkcSerialembeddedfirmwareprovidesaneasytouseATstylecommandinterfaceoverUART.kcSerialiscapableof storingOEMdefaultsettings,andisupgradableoverUART.kcSerialalsoprovidesremotecontrolcapability,whereour ATcommandscanbeissuedremotelyfromanyotherBluetoothdeviceusingSPP.Customfirmwareisavailable. (Forlongrangeapplications,KCWirefreerecommendsourKC5100Class1,BluetoothDataHiPowerModule.)
20032011KCWirefree
Page1of13
VersionJune24,2011
KC-21
www.kcwirefree.com
20032011KCWirefree
Page2of13
VersionJune24,2011
KC-21
www.kcwirefree.com
Physical Dimensions
KC21TopView (dimensionsinmm)
1.80 0.70 2.52 6.75
KC21LandingPattern (dimensionsinmm)
2.52
1.98 1.53
PIO 08 NC RSET PIO 09 PIO 01 TXD PIO 00 RXD CTS RTS USB DP USB DM 1 2 3 4 5 6 7 8 9 10 11 12 28 27
8.00
1.53 2.20
26 25 24 23 22 21 20 19 18 17 16 15 14 13 VDD GND PIO 05 PIO 04 PIO 06 PIO 07 PIO 10 PIO 03 PIO 02 PIO 11 AIO 0 AIO 1
1.66
0.70 1.80
15.24 mm
1.80 0.12
Pad layout 0.775 1.025
16.75
17.76 19.68
26.92
8.51
16.79 mm
Pio Assignments
OnlyforthisKC21v6module,ourpreviouskcSerialv2.4firmwareeditionprovidedalogicalGPIOassignmentwithin theATCommandlanguagetopreservecompatibilitywitholdergenerationsofKC21modules.SinceournewkcSerial v3.0firmwareprovidescompletelyreassignablePioInput/Outputfeatures,thislogicalGPIOassignmentisnolonger necessary,andtheBluetoothchipphysicalPIOassignmentsareused. Pin 1 4 5 7 15 16 kcSerial v3.0 PIO08 PIO09 PIO01 PIO00 PIO11 PIO02 kcSerial v2.4 GPIO03 GPIO08 GPIO10 GPIO09 GPIO13 GPIO00 Pin 17 18 19 20 21 22 kcSerial v3.0 PIO03 PIO10 PIO07 PIO06 PIO04 PIO05 kcSerial v2.4 GPIO01 GPIO04 GPIO02 GPIO05 GPIO15 GPIO06
20032011KCWirefree
Page3of13
VersionJune24,2011
KC-21
www.kcwirefree.com
Pin Assignment
Pin 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 Function PIO_08 NC RESET PIO_09 PIO_01 UART_TXD PIO_00 UART_RXD UART_CTS UART_RTS USB_DP USB_DN AIO_1 AIO_0 PIO_11 PIO_02 PIO_03 PIO_10 PIO_07 PIO_06 PIO_04 PIO_05 GND VDD SPI_MISO SPI_MOSI SPI_CS SPI_CLK Type I/O Input I/O I/O Output I/O Input Input Output I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O Input I/O I/O I/O I/O Description ProgrammableInput/Output NotConnected HardwareResetwhenLow>5ms ProgrammableInput/Output ProgrammableInput/Output[Class1TXEnable] UARTDataOutput ProgrammableInput/Output[Class1RXEnable] UARTDataInput UARTClearToSend UARTRequestToSend USBDataPositive USBDataNegative ProgrammableInput/Output[ADC,CLK] ProgrammableInput/Output[ADC,CLK] ProgrammableInput/Output ProgrammableInput/Output ProgrammableInput/Output ProgrammableInput/Output ProgrammableInput/Output[RXDPassthrough] ProgrammableInput/Output[CTSPassthrough] ProgrammableInput/Output[TXDPassthrough] ProgrammableInput/Output[RTSPassthrough] Ground 3V3RegulatedInput SPIMasterInSlaveOut SPIMasterOutSlaveIn SPIChipSelect SPIClock
[Special/optionalpinfeaturesshowninbrackets]
20032011KCWirefree
Page4of13
VersionJune24,2011
KC-21
www.kcwirefree.com
Electrical Characteristics
Absolute Maximum Ratings Storagetemperaturerange SupplyvoltageVDD Recommended Operating Conditions TemperatureRange SupplyVoltageVDD(3.3VRecommended) Digital PIO & UART Pins Characteristics InputVoltageLowLogic InputVoltageHighLogic OutputVoltageLowLogic OutputVoltageHighLogic InputLeakageCurrent InputCapacitance WeakInternalPullUp WeakInternalPullDown StrongInternalPullUp StrongInternalPullDown Analog Programmable I/O Pins Characteristics Resolution SampleRate Voltage Min 0.4 2.3 3.1 1 1.0 5.0 +0.2 100 +10
Min 40 2.8
Max 85 3.6
Unit C Volts
Min 0
Max 8 50 1.8
20032011KCWirefree
Page5of13
VersionJune24,2011
KC-21
www.kcwirefree.com
20032011KCWirefree
Page6of13
VersionJune24,2011
KC-21
www.kcwirefree.com
Firmware Interface
TheKC21offersourpowerfulkcSerialfirmwareinterfaceusingtheUART,whichprovidesaneasytouseATstyletext commandinterface.Thefirmwareinterfaceallowspersistentstorageofconfigurationparameterssuchasdevicename, defaultbaudrate,securityPIN,andautomaticconnectionsettings.AdditionallykcSerialprovidesoperational commandssuchasdiscovery,connections,security,read/writecommandsforI/Opins.Thesecommandsarealso availableinremotecommandmode,soakcSerialdevicewillrespondtothesecommandsissuedlocallyviaUART,or wirelesslyviaremotecommandmode. ThekcSerialv3.0firmwareiscompatiblewithkcSerialv2.4andv2.2firmwareusedonpreviousversionsofKC21 modules.Manynewcommandsareavailable,offeringgreatercontroloverfeaturesandsettings. kcSerial v3.0 AT Command List
AT -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> Help [CommandList] AioRead BtAddr CoD ConnDiscOverride ConnectDun DebugMode DisconnectDun Discovery FactoryReset InputCmdMode InquiryScan LowLatency OutputActivity OutputLowBatt PairingDelete PinCode PioSettings PioWrite RfcService Rssi ShowSettings SniffSettings Timer Version EscapeMode EscapeCmd RemoteMode RemoteCmd
AutoConnect Build ConfigRawBaud Connect ConnectIOS DeepSleep Discoverable DiscoveryRssi HciMode InputConnect LinkTest Messages OutputConnect Pair PairingOption PioConfig PioStatus RemoteCommand RfPower Security ShowStatus SniffSubrate TimerAio ZvMode ~~~~~1 ~~~~~2 ~~~~~3 ~~~~~4
BatteryMon Bypass ConfigUart Connectable ConnectScan Disconnect DiscoverSvc EscapeCommand HwFlowControl InputSleepBlock LinkTimeout Name OutputCpu Pairable Passkey PioRead PioStrong Reset RoleSwitch SecurityAuth Sniff SppService TimerPio
PleaserefertoourkcSerial3.0UserGuideforadditionalinformation.
20032011KCWirefree
Page7of13
VersionJune24,2011
KC-21
www.kcwirefree.com
Hardware Interfaces
SPI Interface TheSPIpinsareonlyavailableforfirmwareloadingandtesttools.SPItestpointsarehighlyrecommendedfor emergencydiagnosticsaccess. UART Interface TheUARTiscompatiblewiththe16450industrystandard.FoursignalsareprovidedwiththeUARTinterface.TheTXD andRXDpinsareusedfordatawhiletheCTSandRTSpinsareusedforflowcontrol.TheUARTpinsoperateatTTL voltagelevelandmustbetranslatedtohigherRS232voltagelevelsforcommunicatingwithPChosts.AMaxim3225 seriesorsimilartranslatorisrecommended.ItishighlyrecommendedthatUARTpinsareavailableforexternal connection(DB9connectorortestpoints)toallowfirmwarereinstallationorupdates. UART Bypass Interface AUARTbypassfeatureisavailablewheretheUARTsignalsarepassedthroughtoPIO[4,5,6,7].Anexternalprocessoris requiredtoissueacommandthatenablesthebypassmode.ThemodulewillbeinDeepSleepwhileinbypassmode, andrequiresanexternalresettoresumenormaloperation. USB Interface TheUSBinterfaceisavailableforcustomapplications. Firmware Command and Control KC21modulescanbeconnectedtoPCorMCUhostsusingtheUARTinterface.OurkcSerialfirmwareprovidesaneasy touseATstylecommandinterfaceusingsimpletextcommandsandparameters.PleaserefertoourkcSerialUserGuide foradditionalinformation. PIO Interface Pins PIOpinsarereadandwriteenabledviakcSerialcommands.Inputscanbeconfiguredforweakpullup,weakpulldown, strongpullup,strongpulldown.VoltageinputtoleranceandoutputlevelisequaltotheVDDlevel. AIO Interface Pins AIO0andAIO1areenabledforanaloginputbydefault,providing8bitsamplesatratesupto50samples/sec.Analog pinsare1.8Vlogicforinputmode.AIOpinscanbeoptionallyconfiguredforclockoutputof8,16,24,or48MHz.
20032011KCWirefree
Page8of13
VersionJune24,2011
KC-21
www.kcwirefree.com
Application Notes
EagleCADfootprintavailableatwww.kcwirefree.com. RS232hardwareflowcontrolisdisabledinkcSerialv3.0firmwarebydefault,andcanbepermanentlyenabled withATHwFlowControlEcommand.Itishighlyrecommendedtoenablehardwareflowcontrol,sincedatacan belostwithpoorwirelessconnectionswithoutflowcontrol. UARTinterfacesare3V3TTL.AvoltagelevelshifterisrequiredwheninterfacingtoPCstandardRS232ports. Powersupplytomoduleshouldhavelessthan10mVrmsnoisebetween010MHz,andspikesshouldbeminimal. Regulatorshouldhaveafastresponsetime<20s.Itisessentialthatthepowerrailrecoverquickly.Weprefer theOnSemiconductorMC78PC33NTRG. AvoltagelevelmonitorICconnectedtoRESETisrecommendedforfluctuatingpowersources(especially automotive).Flashmemorycanbecomecorruptedwithhighorlowspikingpowersources. 1ForlargercapacitorfilterrecommendedforVDDinput. Allunusedpinsshouldbeunconnected. Theareaaroundtheantennashouldbefreeofmetalandgrounds.Minimumclearanceis5mm,butadditional clearanceimprovesRFperformance. Donotuseultrasoniccleaning,whichmaycauseinternalinterconnectdamagetoICsandcrystals. WerecommendprovidinganRJ45programmingadapterjack,oratleasta2.54mmprogrammingheader.The componentdoesnotneedtobeplacedunlessneededforemergencydiagnostics.
RJ-45 JACK PROGRAM INTERFACE
SPI MOSI SPI MISO SPI CSB SPI CLK GND
20032011KCWirefree
Page9of13
VersionJune24,2011
KC-21
www.kcwirefree.com
COMPUTER / MICROPROCESSOR 1
2 7 3 8 4 9 5
9 5
UARTconnectionwithlevelshifting
TEST POINTS
SPI MOSI
28 27 1 PIO 03 2 NC 3 RSET 4 PIO 08 5 PIO 10 UART TXD 6 UART TXD 7 PIO 09 UART RXD SERIAL FLOW CONTROL OVERRIDE 8 UART RXD 9 UART CTS 10 UART RTS 11 USB P 12 USB N
10K
430
PIO 02 19
SPI MISO
SPI CSB
SPI CLK
ExampleKC21moduleschematicusing3wireserialinterfaceoption
20032011KCWirefree
Page10of13
VersionJune24,2011
KC-21
www.kcwirefree.com
Pre Qualifications
Bluetooth TheKC21isregisteredwithandlicensedbyBluetoothSIGasaqualifieddesign. QualificationDesignID:B015017 BluetoothVersion:2.1+EDR QualifiedProfiles:BB,DUN,GAP,HCI,L2CAP,LM,RFCOMM,SDP,SPP
UsageofBluetoothregisteredtrademarksmustbelicenseddirectlyfromBluetoothSIG.Anocostmembershipis currentlyofferedfortrademarkusage,andnocostBluetoothproductlistingsarecurrentlyofferedforproducts containingourprequalifiedBluetoothmodules. FCC TheKC21isregisteredwithandgrantedlimitedmodularapprovalbytheFederalCommunicationsCommission.The KC21meetstheconductedandradiatedemissionrequirementsoftheFCC"CodeofFederalRegulations"Title47,Part 15,SubpartC,Section15.247forBluetoothspreadspectrumtransmitters. Withawrittenagreement,OriginalEquipmentManufacturersmayuseourFCCIDtransmitterlicense.Thefollowing FCCIDmustbevisibleontheexterioroffinaltheproduct. CE TheKC21complieswiththefollowingEMCDirectives: EN300.328V1.6.1(200411) FCCID:S2242
20032011KCWirefree
Page11of13
VersionJune24,2011
KC-21
www.kcwirefree.com
Datasheet Versions
Revisions February11,2009 March3,2009 March5,2009 March23,2009 April3,2009 June17,2009 August3,2009 January21,2010 February9,2010 March17,2010 July27,2010 Jun24,2011 Changes KC21v6datasheetrelease Updatedimage,correctedexamplecircuitpinnumbers Updatedapplications,addedcrossreferenceforKC5290,addedblockdiagram UpdatedkcSerialcommands,exampleschematic,hardwareinterfaces Updatedexampleschematics,correctedMOSI,MISOpinlabels Updatedexampleschematics,andformatting Updatedprofiles Updateddimensions,exampleschematics,firmwaredescription,applicationnotes Updateformatting 3wireserialinterfacecorrection,renameanalogIOpins,updateillustrations UpdatedPIOassignments,addedkcSerialv3.0informationandcommands Updatedoperatingvoltages
20032011KCWirefree
Page12of13
VersionJune24,2011
KC-21
www.kcwirefree.com
Ordering Information
ProductSeries ProductVersion CountryofManufacture KC21 6.3 USA
Contact Information
KCWirefree 2640WMedtronicWay Tempe,Arizona85281 (602)3862640 Phone
20032011KCWirefree
Page13of13
VersionJune24,2011