Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 26, 2024, 08:22:51 20:22


Login with username, password and session length


Pages: [1]
Print
Author Topic: PICBASIC PRO - Which one is the most stable version currently??  (Read 4985 times)
0 Members and 2 Guests are viewing this topic.
neremal
Guest
« on: April 11, 2008, 05:05:22 05:05 »

Hi there fellow consivri's,
I am neremal a newbie here. I am very interested in learning PICBASIC PRO language.

i have downloaded PicBasic Pro Compiler Ver. 2.45 and also added the patch for it.

I have tried programing some simple codes .... after compiling, it indicates no error.

But when i test it, it does not show the outcome. Can someone guide me!!

Here is the program wrote.. just with 5 input and 5 output. Is it the compiler or just my codes..


PORTA = 5
PORTB = 6
TRISA = 133
TRISB = 134

Poke TRISA,%00000
Poke TRISB,%00011111          'Set RB0 as input, all others as outputs

B0 var byte

Check:
B0 = PORTB             'Read the input Port B
If B0 = 1 Then On1         
If B0 = 2 Then On2
If B0 = 4 Then On3
If B0 = 8 Then On4
If B0 = 16 Then On5         
Goto Check


On1:
PORTA.0 = 1
pause 3000
Goto check

On2:
PORTA.1 = 1
pause 3000
Goto check

On3:
PORTA.2 = 1
pause 3000
Goto check

On4:
PORTA.3 = 1
pause 3000
Goto check

On5:
PORTA.4 = 1
pause 3000
Goto check

End

Logged
ero
Junior Member
**
Offline Offline

Posts: 43

Thank You
-Given: 13
-Receive: 27


« Reply #1 on: April 11, 2008, 09:39:05 09:39 »

The code is right and there is not any error.
Pls. check the left side on the bottom. You will see there "success:113 words used.
It means your code is compiled and the hex file has been built in the same directory where there is your bas file .
Pls. check there to see your hex file.

Ero
Logged
neremal
Guest
« Reply #2 on: April 11, 2008, 04:21:54 16:21 »

Hi ero ,
thanks for the reply,
when i compile it gives me the info as noted below:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\neremal>cd\picbasic

C:\PicBasic>pbp nick
PicBasic Pro Compiler 2.45, (c) 1998, 2004 microEngineering Labs, Inc.
All Rights Reserved.
PM Assembler 4.06, Copyright (c) 1995, 2003 microEngineering Labs, Inc.
115 words used.

C:\PicBasic>


Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC