Guest access Posted March 5, 2012 Share Posted March 5, 2012 Buna ziua , sunt incepator intre ale pic-urilor si apelez la voi.. cum extrag hex-ul din fisierul de mai jos? timertest2.txt Link to comment
Marele Savant Posted March 5, 2012 Share Posted March 5, 2012 Aveti hex-ul compilat in arhiva.Succes, Emil Link to comment
MatyC Posted March 5, 2012 Share Posted March 5, 2012 Se schimba extensia .txt cu .asm, te folosesti de MPASMWIN.exe sa compilezi programul. In folder vei gasi un fisier cu extensie .hex. LIST p=16F628 ; TELLS THE PROGRAMMER WHAT CHIP WE'RE USING.include "P16F628.inc" ; INCLUDES DEFAULTS FOR THE CHIP.ERRORLEVEL 0, -302 ;suppress bank selection messages__config 0x3D18 ;sets the configuration settings (oscillator;type etc.);__config _INTRC_OSC_NOCLKOUT & _LVP_OFF & _WDT_OFF & _PWRTE_OFFcblock 0x20 ;start of general purpose registersLIST p=xxxxx, include "xxxx.inc", cblock, ERRORLEVEL etc, se regasesc in general in coduri sursa scrise in asambler si in cazul de fata este sintaxa ceruta de MPASM de la Microchip. Link to comment
Guest access Posted March 9, 2012 Share Posted March 9, 2012 Multumesc mi-ati fost de ajutor Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now