dus hier is mijn bijgeschaafde code
pic basic code:
[/Device = 18F4550
CONFIG_START
PLLDIV = 2 ; Divide by 2 (8 MHz oscillator input)
CPUDIV = OSC1_PLL2 ; [OSC1/OSC2 Src: /1][96 MHz PLL Src: /2]
USBDIV = 2 ; USB clock source comes from the 96 MHz PLL divided by 2
FOSC = HSPLL_HS ; HS oscillator, PLL enabled, HS used by USB
PWRT = Off ; PWRT disabled
BOR = OFF ; Brown-out Reset disabled in hardware and software
LVP = OFF ; Low voltage programming off
WDT = OFF ; watch dog timer off
CONFIG_END
XTAL = 48
ALL_DIGITAL TRUE ;Alle ingangen digitaal
LCD_DTPORT = PORTD
LCD_RSPIN = PORTB.1
LCD_ENPIN = PORTB.0
LCD_RWPIN = PORTB.2
LCD_CS1PIN = PORTB.5
LCD_CS2PIN = PORTB.4
LCD_TYPE = GRAPHIC
;INTERNAL_FONT = On ps deze heb ik er uitgehaald omdat hij niet compiled
;met type 1 display wel met type 2 SAMSUNG denk ik
FONT_ADDR = 0
Cls
DelayMS 500
start:
Print "hallo"
DelayMS 200
GoTo start
End
Include "font.inc"]