Continue to Site

Welcome to

Welcome to our site! is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

PWM module for pic 16f737

Not open for further replies.


Newbie level 2
Oct 10, 2009
Reaction score
Trophy points
Activity points
Hello all ...

at first, sorry for my bad english...
I'm get started to use pic 16f737 and I need some help with this pic...

If someone can help i'll be very happy...
-someone have any good beginner tutorial that can help me with the pic 16f737, (about the OSCillator, OPTIONs, INTCON, etc...)?
-someone can teach me how to use the pwm module of the pic 16f737??

It's all for now... I'm waiting for answers... thanks everybody!


Think you will find this assembler tutorial is one of the best ; it includes a PWM section as well.

Most of the code will run on your chip without modification.

Here are some others that might help-

3. Where to find tutorials?

The tutorials by Microchip as detailed above and many datasheets and application notes from the same Microchip website.

For practical hand on experiment, try Nigel Goodwins tutorials (they use 16F628,876 & 877) and have different "module boards" to play with which also includes the newly added wireless interfacing tutorial:

And some other that include tutorials & projects:
**broken link removed**
broken link removed
**broken link removed**
**broken link removed**
**broken link removed**
**broken link removed**
**broken link removed**
**broken link removed**
**broken link removed**
**broken link removed**
**broken link removed**
Last edited by a moderator:

Thanks wp100....
But I want to know how to use the register of the
pic 16f737 if you have a tutorial that explain that i'll be
very happy...
I have the datasheet of the pic 16f737 but that's not all
that I need... do you understand me?

Ah, and I want to have samples about that topics...

thanks anyway =)


Have not seen a tutorial dedicated to just explaining the many registers used by a pic.

It is usually a case of learning to do a particular function like PWM that then introduces you to the relevant registers like the CCP and Timer2 registers for PWM.

Microchip detail all the registers in the data sheet, but for a beginner trying to follow microchips full description of them is a lost cause, thats why so many people write the tutorials.

If you follow Nigel Goodwins tutorials which start with the simple function of flashing a led, that introduces you to the config and 6 registers.

Have attached that led code, but updated so it should run on you 737 chip.

hope that helps .. ?

	LIST	p=16F737		;tell assembler what chip we are using
	include ""		;include the defaults for the chip
	errorlevel -302		; no bank warnings

;	Configuration bits 
;	==================
; specified here are changes to the .inc file defaults


		org	0x0000			;org sets the origin, 
Start	goto	Main		;this is where the program starts running


  	bsf 	STATUS,	RP0		;select bank 1	

    movlw	b'01100010'		; set internal osc to 4 mhz
	movwf	OSCCON

	movlw	0x07
	movwf	CMCON			;turn comparators off 

   	movlw 	b'00000000'		;set PortB all outputs
   	movwf 	TRISB
	movwf	TRISA			;set PortA all outputs

	bcf		STATUS,	RP0		;select bank 0

	movlw	0xff
	movwf	PORTA			;set all bits on
	movwf	PORTB
	nop				;the nop's make up the time taken by the goto
	nop				;giving a square wave output
	movlw	0x00
	movwf	PORTA
	movwf	PORTB			;set all bits off
	goto	Loop			;go back and do it again


Not open for further replies.

Part and Inventory Search

Welcome to