caramoan tour package

caramoan tour package

Author Topic: Paki-check po kung tama...  (Read 252 times)

Offline drag00n3333

  • CR2032 Battery
  • **
  • Posts: 12
  • Pogi/Ganda Points: 0
Paki-check po kung tama...
« on: March 08, 2012, 12:24:57 AM »
Gamit ko po 2x16 LCD and pic16f84a, im using PICBASIC as programming language...pki correct po kung my error po thx in advance
d ko po kc mapalabas mga character blank lagi...


Here's my code:

Code: [Select]
Device 16F84A          ' MCU TYPE
    XTAL = 4                ' 4MHZ
   
' Define LOADER_USED to allow use of the boot loader.
' This will not affect normal program operation.
TRISB=%00000000
 
' Define LCD registers and bits
DEFINE LCD_DREG  PORTb
DEFINE LCD_DBIT  4
DEFINE LCD_RSREG PORTb
DEFINE LCD_RSBIT 1
DEFINE LCD_RWREG PORTB
DEFINE LCD_RWBIT 2
DEFINE LCD_EREG  PORTb
DEFINE LCD_EBIT  3
DEFINE LCD_BITS 4

delayms 500
cls

     
main:
PRINT  $FE, 1
delayms 500
print $FE, 2, "Jeff"
delayms 500
goto main


 
 End

Philippine Electronics Forum

Paki-check po kung tama...
« on: March 08, 2012, 12:24:57 AM »

Offline nucleus

  • Gas Turbine
  • **
  • Posts: 2573
  • Pogi/Ganda Points: 123
  • Gender: Male
Re: Paki-check po kung tama...
« Reply #1 on: March 08, 2012, 01:37:24 AM »
Gamit ko po 2x16 LCD and pic16f84a, im using PICBASIC as programming language...pki correct po kung my error po thx in advance
d ko po kc mapalabas mga character blank lagi...


Here's my code:

Code: [Select]
Device 16F84A          ' MCU TYPE
    XTAL = 4                ' 4MHZ
    
' Define LOADER_USED to allow use of the boot loader.
' This will not affect normal program operation.
TRISB=%00000000
 
' Define LCD registers and bits
DEFINE LCD_DREG  PORTb
DEFINE LCD_DBIT  4
DEFINE LCD_RSREG PORTb
DEFINE LCD_RSBIT 1
DEFINE LCD_RWREG PORTB
DEFINE LCD_RWBIT 2
DEFINE LCD_EREG  PORTb
DEFINE LCD_EBIT  3
DEFINE LCD_BITS 4

delayms 500
cls

    
main:
PRINT  $FE, 1
delayms 500
print $FE, 2, "Jeff"
delayms 500
goto main


 
 End

anong picbasic ito, proton picbasic ba ito? o picbasic pro?

ang pansin ko dun sa code mo wala kang definition ng oscillator at configurations sa tris register
pati yung

Code: [Select]
PRINT  $FE, 1
print $FE, 2, "Jeff"

ang alam ko sa picbasic pro LCDOUT ang gamit at yung
Code: [Select]
LCDOUT  $FE, 1 na line ay nagsasabing Clear Display


at itong

Code: [Select]
LCDOUT  $FE, 2 "Jeff"
ay nagsasabing magsulat ng "Jeff" sa first line ng lcd


Hi! I'm nucleus and i carry the charge 8)

Hindi ako nandito para makipagkumpitensya kanino man

Philippine Electronics Forum

Re: Paki-check po kung tama...
« Reply #1 on: March 08, 2012, 01:37:24 AM »

Offline motion55

  • Technical People
  • Diesel Generator
  • *****
  • Posts: 1878
  • Pogi/Ganda Points: 243
  • Gender: Male
  • Been at this longer than you've been alive.
Re: Paki-check po kung tama...
« Reply #2 on: March 08, 2012, 07:12:47 AM »


Ahem. Sobrang taas ng .1uF value ng C1 at C2 sa crystal. It should only be about 22pF.
"Set your mind free!"

Philippine Electronics Forum

Re: Paki-check po kung tama...
« Reply #2 on: March 08, 2012, 07:12:47 AM »

Offline drag00n3333

  • CR2032 Battery
  • **
  • Posts: 12
  • Pogi/Ganda Points: 0
Re: Paki-check po kung tama...
« Reply #3 on: March 08, 2012, 12:36:59 PM »
Proton picbasic po gmit ko, nasubukas ko na rin po "LCDOUT" pro ayaw prin lumabas...ung "XTAL" po sa code ko un po ung para sa crystal ocillator...mron po dyan sa code ko ung TRISB

Philippine Electronics Forum

Re: Paki-check po kung tama...
« Reply #3 on: March 08, 2012, 12:36:59 PM »

Offline nucleus

  • Gas Turbine
  • **
  • Posts: 2573
  • Pogi/Ganda Points: 123
  • Gender: Male
Re: Paki-check po kung tama...
« Reply #4 on: March 08, 2012, 07:23:44 PM »
Proton picbasic po gmit ko, nasubukas ko na rin po "LCDOUT" pro ayaw prin lumabas...ung "XTAL" po sa code ko un po ung para sa crystal ocillator...mron po dyan sa code ko ung TRISB

ay sorry di ko napansin.
Hi! I'm nucleus and i carry the charge 8)

Hindi ako nandito para makipagkumpitensya kanino man

Philippine Electronics Forum

Re: Paki-check po kung tama...
« Reply #4 on: March 08, 2012, 07:23:44 PM »

 

Privacy Policy

Contact Us: elabph@yahoo.com