[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
the Configuration Word
From: Fidel González ####@####.#### Date: 26 Aug 2004 22:43:21 +0100 Message-Id: <412E5B5F.2090402@unixmexico.org> Hi guys OK, I was looking for information about programming the configuration bits in a PIC16f74, and I found that the __CONFIG directive can do this for me, however in the gputils manual just says: __CONFIG <expression> So, What does expression mean? What does __config do? How does the _CONFIG directive write in the 2007 address? Maybe it's a basic thing, but I'm new using gputils, sorry. thanks in advanced -- ,''`. Fidel González Aguilar : :' : Linux User #248700 `. `' Ingeniería Electrónica UAEM `- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: the Configuration Word
From: Tsu Do Nimh ####@####.#### Date: 27 Aug 2004 02:11:37 +0100 Message-Id: <cd4a162804082618113d847883@mail.gmail.com> On Thu, 26 Aug 2004 16:51:27 -0500, Fidel González Aguilar ####@####.#### wrote: > __CONFIG <expression> > > So, What does expression mean? What does __config do? How does the > _CONFIG directive write in the 2007 address? > > Maybe it's a basic thing, but I'm new using gputils, sorry. Hi, __CONFIG is a macro, it looks just like MPASMs version. You can find documentation on the www.microchip.com website. Or, look in http://ww1.microchip.com/downloads/en/DeviceDoc/33014g.pdf on page 42 (p.57 in the .pdf) You will also see examples in the .inc files found in your gpasm directories: __CONFIG _CONFIG1, _CP_OFF & _CCP2_RC1 & _DEBUG_OFF & _VBOR_2_0 & BOREN_1 & _MCLR_OFF & _PWRTE_OFF & _WDT_OFF & _HS_OSC (it's a bunch of numbers ANDed together) Hasta la pizza, Tsu Do -- [.signature for hire Call 409.555.1212] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |