Search found 10 matches

by ARd16
Mon Apr 17, 2023 1:03 pm
Forum: General
Topic: How To Convert Another Basic To SF
Replies: 2
Views: 1750

Re: How To Convert Another Basic To SF

Hi Jerry, Thanks for your answer. As well as you knew, I still learning SF Compiler, back like a VB 6.0. So far, above code has been done with another Basic Compiler, I was build this hw use that code and very well working, with some modified I did. With above code if it can be convert to SF, it wil...
by ARd16
Sun Apr 16, 2023 12:58 pm
Forum: General
Topic: How To Convert Another Basic To SF
Replies: 2
Views: 1750

How To Convert Another Basic To SF

Hi There, I will tried start to discuss about how to convert another Basic compiler to SF Compiler, due a reason I want to change use under PIC18F2550. Here are the code : Sub Lcd_home() Local Mem_bit As Byte Mem_bit = 1 Cls Locate 1 , 1 Lcd "<Manual Handle>" Call Set_lcd() Locate 2 , 2 Lcd Chr(0) ;...
by ARd16
Sat Apr 15, 2023 5:03 am
Forum: General
Topic: PIC18F2550 Configuration
Replies: 15
Views: 13611

Re: PIC18F2550 Configuration

Hello Jerry, I tried to searching at yesterday for this crystal in my country, this crystal is a available, so could be I will do with this.....but, I don't know exactly how to do, the CCP only have 2 pin CCP1 and CCP2, and I need 3 pin for produce a frequency, it's could made with 3 pin for a CCP ?...
by ARd16
Thu Apr 13, 2023 5:38 pm
Forum: General
Topic: PIC18F2550 Configuration
Replies: 15
Views: 13611

Re: PIC18F2550 Configuration

Hello Jerry, Thanks for your reply again. As well as your pieces code below TRISB = 0 While (true) PORTB = %10111110 PORTB = %11111101 DelayUS(24) End While Here is a result Test Pieces Code.JPG Sorry, but I don't understand what you need. What does "half value with both other PORTB" mean? Can you e...
by ARd16
Thu Apr 13, 2023 1:00 pm
Forum: General
Topic: PIC18F2550 Configuration
Replies: 15
Views: 13611

Re: PIC18F2550 Configuration

Hello Jerry, Thank you so much so far your advice. As well as your latest pieces code it doesn't expected what I need, so I tried to changes some PORTB I/O to get half value with both other PORTB, now looks more better but still need to reduce little smaller, I tried many times, it's doesn't closer ...
by ARd16
Thu Apr 13, 2023 5:01 am
Forum: General
Topic: PIC18F2550 Configuration
Replies: 15
Views: 13611

Re: PIC18F2550 Configuration

Hello Jerry, Thanks for reply again, some code I has changes, due I test it on Proteus it seems very lower pulse and I am not reach to expected point, please see below : Device = 18F2550 //uC use Clock = 20 // Use external crystal Config PLLDIV = 5, // Divide by 5 (20 MHz oscillator input) CPUDIV = ...
by ARd16
Wed Apr 12, 2023 5:21 am
Forum: General
Topic: PIC18F2550 Configuration
Replies: 15
Views: 13611

Re: PIC18F2550 Configuration

Hi The code you have posted looks looks more like PROTON (or POSITRON as it is called now). Some examples include: Declare Xtal = 20 => clock = 20 Dim pinLed PORTB.5 => Dim pinLed As PORTB.5 High OnLed => High(OnLed) pause 50 => delayms(50) also your block and loop constructs: while wend => while [...
by ARd16
Wed Apr 12, 2023 5:05 am
Forum: General
Topic: PIC18F2550 Configuration
Replies: 15
Views: 13611

Re: PIC18F2550 Configuration

Hello Jerry, Thanks for your answer again. Here are code has been changes refer to your advice, but I still have a problem at RB0-RB1 and RB6 doesn't produced an output. Device = 18F2550 //uC use Clock = 20 // Use external crystal Config PLLDIV = 5, // Divide by 5 (20 MHz oscillator input) CPUDIV = ...
by ARd16
Tue Apr 11, 2023 7:02 pm
Forum: General
Topic: PIC18F2550 Configuration
Replies: 15
Views: 13611

Re: PIC18F2550 Configuration

Jerry, Thanks for your answer, I change refer to your guidance. For blink_led = 0 To 12 'reach 12 time then High(OnLed) 'Led Off - Inverted 'pinLed = 1 high(pinLed) 'Make it on delayMs(100) 'Delay a second 'pinLed = 0 'Make it off low(pinLed) delayMs(100) 'Delay a second 'High(OnLed) 'Reach make Led...
by ARd16
Tue Apr 11, 2023 5:55 am
Forum: General
Topic: PIC18F2550 Configuration
Replies: 15
Views: 13611

PIC18F2550 Configuration

Hello Everyone, I am newbie in Swordfish. I just first time to use SF compiler and purchase this compiler on yesterday. Well, today I just started to use and compiled some pieces code use a PIC18F2550, I plan to use a Crystal 20 Mhz with external and I refer to use a Plugin configGenerator through S...