Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Code tags all messed up.

Status
Not open for further replies.

Pommie

Well-Known Member
Most Helpful Member
See,

Code:
	list	p=16F88
	include <p16f88.inc>
	__config _CONFIG1, _WDT_OFF & _INTRC_IO & _MCLR_ON & _LVP_OFF
	ERRORLEVEL 0, -302

	cblock	0x20
	count
	endc

	banksel	TRISA		;bank 1
	movlw	B'00001000'	;MAKE RA3 INPUT
	movwf	TRISA
	movwf	ANSEL		;MAKE RA3 ANALOG INPUT
	movlw	B'10000000'
	movwf	ADCON1		;set right justified
	banksel	ADCON0		;bank 0
	movlw	B'01011001'
	movwf	ADCON0		;enable A/D
	bsf	STATUS,RP0
	movlw	0x70		;switch to 8MHz clock
	movwf	OSCCON
	bcf	STATUS,RP0

Mike.
 
Last edited:
Yes I was trying to tell to EM.

Also Currently Active Users link is not working from a long time.Its a very useful link.When you post a thread people are in a hurry to receive replies.By looking at this link they can satisfy their mind whether people are looking or not.
 
Last edited:
hi, Just a test.

EDIT: it appears to be stripping the CRLF codes out of the text, its all there but no CRLF's


Code:
init
	banksel	OSCCON		;select oscillator control
	bcf	OSCCON,6	;set postscaler to 250 kHz

	bsf	STATUS,RP0
	movlw	b'00000111'	; configure Timer0. Sourced from the Processor clock;
	movwf	OPTION_REG	; Maximum Prescaler
	clrf	TRISC		; Make PortC all output
	clrf	Display
	bcf	STATUS,RP0
	bsf	INTCON,7	;global interrupt enabled
	banksel	PORTA
	bsf	TRISA,5
	bsf	IOCA,5		;interrupt on change enabled
 
Last edited:
Ok thanks EM now the code tags is ok.But there are lots of adjustments to make in new electro tech site.

Did you remove the link that "Threads Started by User"?I can see only subscribed threads in that very hard to filter the threads that started by the user :(
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top