oww boy
wy you don't untherstand me aftermaking suchs good tutorials..??
the data sheet is like hocus spocus for me..
and i want to learn wy i put something in the asm file..
soow if you can do me a favour..(i hope you do and have fait in it..)
tell me exactly..
: how you come choosing the config you did when you wrote : __config 0x3D18
in the data sheets of the chip used: 16F628 i see this on page 26
bit 7 bit 0
bit 7-4 Unimplemented: Read as '0'
bit 3 OSCF: INTRC/ER oscillator frequency
1 = 4 MHz typical(1)
0 = 37 KHz typical
bit 2 Unimplemented: Read as '0'
bit 1 POR: Power-on Reset STATUS bit
1 = No Power-on Reset occurred
0 = A Power-on Reset occurred (must be set in software after a Power-on Reset occurs)
bit 0 BOD: Brown-out Detect STATUS bit
1 = No Brown-out Reset occurred
0 = A Brown-out Reset occurred (must be set in software after a Brown-out Reset occurs)
Note 1: When in ER Oscillator mode, setting OSCF = 1 will cause the oscillator frequency to change to the frequency specified by the external resistor.
soow tell me please how do you produce 0x3D18 from the text above.
my calc says that: 3D18 = 11110100011000 or has this nothing to do whit it..??
TKS
hope i'm doing right.. and that you can explain..
also hope that i will be able to produce config settings my self.
if you like it more i put my nonworking code here...(masm accepted whit 0 faults..)