> Je traite des données analogiques qui évoluent entre 1 et 10 volts
> avec un Arduino. No Problemo : un pont diviseur 2 x 5k fait la
> chose très bien.
>
> Hélas, j'ai certains équipements qui envoient parfois des glichs
> du genre 12v ou -2v, et j'ai bien peur que ça ne grille l'AVR.
>
> Quelles méthodes de protection puis-je utiliser pour bloquer ces
> impulsions malsaines sans perdre la linéarité dans la plage de
> données ?
En premier chercher dans la doc les informations sur les protections des
entrées. Tu n'es pas le premier qui pense faire entrer de l'analogique
dans une circuit logique.
Ce qui compte c'est l'énergie dans le glitch, pas trop sa tension, les
circuits sont naturellement protégés par des diodes.
Figure 14-1. I/O Pin Equivalent Schematic
dans
Atmel-8271-8-bit-AVR-Microcontroller-ATmega48A-48PA-88A-88PA-168A-168PA-328-328P_datasheet_Complete.pdf
à l'adresse
http://www.atmel.com%2Fimages%2FAtmel-8271-8-bit-AVR-Microcontroller-ATmega48A-48PA-88A-88PA-168A-168PA-328-328P_datasheet_Complete.pdf&ei=RuosVeS3GoGPsAGnpoGIAw&usg=AFQjCNHuoxAvN-EBktnxqF4-_otWYsj7yg&sig2=LkruD-PmxUi5nlKdCFnIBA
> Voltage on any Pin except RESET
> with respect to Ground . . . . . . . . . .-0.5V to VCC+0.5V
> 14. I/O-Ports
> 14.1 Overview
> All AVR ports have true Read-Modify-Write functionality when used as general digital I/O ports. This means that
> the direction of one port pin can be changed without unintentionally changing the direction of any other pin with
> the SBI and CBI instructions. The same applies when changing drive value (if configured as output) or
> enabling/disabling of pull-up resistors (if configured as input). Each output buffer has symmetrical drive
> characteristics with both high sink and source capability. The pin driver is strong enough to drive LED displays
> directly. All port pins have individually selectable pull-up resistors with a supply-voltage invariant resistance. All
> I/O pins have protection diodes to both VCC and Ground as indicated in Figure 14-1. Refer to ”Electrical
> Characteristics – (TA = -40°C to 85°C)” on page 299 for a complete list of parameters.