wich crystal speed you have???
let's say 20MHZ.... So set config fuse to HS OSC at programming time and add
DEFINE OSC 20
at the top of your code
XT is for 4MHZ crystal only.
If you select INTROSC, on F2620 the default setting is...1 MHZ wich explain the 1/4 time speed you have. Default PBP xtal speed is 4MHZ.
to set internal Oscillator speed, write directly to OSCCON register.
OSCCON=%01100000 '=> set internal osc to 4MHZ
the above will fix your problem.
Be friend with this
Welcome to the forum and have fun!!!
Bookmarks