Moteur de recherche de fiches techniques de composants électroniques
  French  ▼
ALLDATASHEET.FR

X  

AN2646 Fiches technique(PDF) 35 Page - STMicroelectronics

No de pièce AN2646
Description  Smartcard interface with the STM8S microcontroller
PDF  43 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Fabricant  STMICROELECTRONICS [STMicroelectronics]
Site Internet  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2646 Fiches technique(HTML) 35 Page - STMicroelectronics

Back Button AN2646 Datasheet HTML 31Page - STMicroelectronics AN2646 Datasheet HTML 32Page - STMicroelectronics AN2646 Datasheet HTML 33Page - STMicroelectronics AN2646 Datasheet HTML 34Page - STMicroelectronics AN2646 Datasheet HTML 35Page - STMicroelectronics AN2646 Datasheet HTML 36Page - STMicroelectronics AN2646 Datasheet HTML 37Page - STMicroelectronics AN2646 Datasheet HTML 38Page - STMicroelectronics AN2646 Datasheet HTML 39Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 35 / 43 page
background image
AN2646 - Application note
Smartcard interface library: description
35/43
6.4
Parity error management
In the T0 protocol, error handling is performed on each byte by looking at the parity bit. If the
actual parity bit does not correspond to the parity of the transmitted data, then an error must
have occurred; the receiving side signals that it requires the byte to be retransmitted in the
case of detecting a parity error. This is done by holding the I/O line low (normally the I/O line
is set high preceding the transfer of a byte). When the transmitting side detects this, it
resends the byte that was not received correctly.
6.4.1
Data sent from card to reader
STM8S20x is able to detect a parity error on a received data via hardware, by pulling down
the data line during the stop bit.
6.4.2
Data sent from reader to card
The smartcard pulls down the I/O line to signal that a parity error occurred, the STM8S20x is
able to detect a frame error via software. The smartcard library uses the
SC_ParityErrorHandler()
function to check whether a parity error has occurred and,
to manage the error if any.
After a byte is sent from the microcontroller to the card, the smartcard captures the data
sent on the I/O line. If a parity error is detected from the card, the I/O line is pulled down
during the stop bits. A frame error event occurs and the SC_ParityErrorHandler() function
resends the last data.



Html Pages

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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43


Fiches technique Télécharger

Go To PDF Page


Lien URL



ALLDATASHEET vous a-t-il été utile ?  [ DONATE ] 

À propos de Alldatasheet   |   Publicité   |   Contactez-nous   |   Politique de confidentialité   |   Lien vers la fiche technique    |   Echange de liens   |   Fabricants
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com