Hi!

I'm new to PIC programming....I have done projects with Basic Stamp 2...

Two codes question;

With a ex VAR WORD (ex=2343). How do I get the digit 2 with picbasic pro?
With basicstamp it's NIB 3. (starting from the right from 0).

Other question;

I have a 40 pin PIC (16f877) and wanna get PORTB (rb0,rb1,rb2 and rb3) to output and ascii number all together.How do I do it with picbasic pro?

With basic stamp here is te code, LOW and HIGH port can be used.

LEDs VAR OUTD ' LEDs on P12 - P15
LEDsDirs VAR DIRD ' DIRS control for LEDs
display VAR OUTC ' Transistors on P8 - P11
cntdisplay VAR DIRC ' DIRS control for Transistors

LEDs = 2 (pin 12 t0 15 will output 2)


Tank you....(don't forget beginner) ...