You are on page 1of 2

El asistente de CCS te pone automticamente un comentario detrs de cada uno, tal que as: Cdigo:

#FUSES NOWDT #FUSES WDT128 #FUSES XT #FUSES NOPROTECT #FUSES BROWNOUT #FUSES BORV20 #FUSES NOPUT #FUSES NOCPD #FUSES STVREN #FUSES NODEBUG #FUSES LVP B5(PIC18) #FUSES NOWRT #FUSES NOWRTD #FUSES IESO enabled #FUSES FCMEN #FUSES PBADEN channels on RESET #FUSES NOWRTC protected #FUSES NOWRTB #FUSES NOEBTR #FUSES NOEBTRB #FUSES NOCPB #FUSES LPT1OSC #FUSES MCLR #FUSES NOXINST #FUSES PLL1

//No Watch Dog Timer //Watch Dog Timer uses 1:128 Postscale //Crystal osc <= 4mhz //Code not protected from reading //Reset when brownout detected //Brownout reset at 2.0V //No Power Up Timer //No EE protection //Stack full/underflow will cause reset //No Debug mode for ICD //Low Voltage Programming on B3(PIC16) or //Program memory not write protected //Data EEPROM not write protected //Internal External Switch Over mode //Fail-safe clock monitor enabled //PORTB pins are configured as analog input //configuration not registers write //Boot block not write protected //Memory not protected from table reads //Boot block not protected from table reads //No Boot Block code protection //Timer1 configured for low-power operation //Master Clear pin enabled //Extended set extension and Indexed //No PLL PreScaler

Addressing mode disabled (Legacy mode)

WDT (Watchdog Timer):


El famoso "perro" del pic. (perro guardin). Esta es una capacidad del pic de autoresetearse. Es muy til, por ejemplo si un Pic, por un descuido de programacin, se queda en un bucle infinito, esta "utilidad" lo sacar de l. Su funcionamiento es sumamente sencillo. Simplemente es un registro que debemos borrar cada cierto tiempo. Si transcurrido un cierto tiempo el registro no ha sido borrado el pic se resetea. La instruccin para borrar el registro es CLRWDT. Con poner un par de ellos a lo largo de nuestro cdigo es suficiente para tener una garanta de que el pic no se quede "haciendo el bobo" (como dijo alguien por ah...).

You might also like