-
-
erstmal danke das sich wenigstens einer meinen problem annimmt.
wie gesagt ich bin anfänger und mit dem jtag hab ich noch überhaupt nichts zu tun und weiß auch nicht wofür man den braucht.
hier mein ganzes Programm (sollte eigentlich total simel sein, aber ich verzweifel daran):
'--- Prozessor Daten ----------------------------------------------------------
$regfile = "m16def.dat"
$crystal = 8000000
$baud = 19200
$hwstack = 32
$swstack = 10
$framesize = 40
'--- genutzte libraries -------------------------------------------------------
$lib "glcdKS108.lib"
'--- Display konfigurieren ----------------------------------------------------
Config 1wire = Portc.7
Config Graphlcd = 128 * 64sed , Dataport = Porta , Controlport = Portd , Ce = 2 , Ce2 = 3 , Cd = 4 , Rd = 5 , Reset = 7 , Enable = 6
'GLCD Pinning at controlport:
'----------------------------
'micro | Bascom | board | display | Pin | description
'
'Pind.2 = CE = CS1 = CSA = 1 = chip select first chip
'Pind.3 = CE2 = CS2 = CSB = 2 = chip select second chip
'Pind.4 = CD = RS = DI = 6 = register select, data/instruction
'Pind.5 = RD = R/W = R/W = 7 = read/write
'Pind.7 = Reset = RST = RST = 17 = chip reset
'Pind.6 = Enable = E = E = 8 = chip Enable
'--- Ausgänge konfigurieren ---------------------------------------------------
Dim X As Byte
On Timer0 Ontimer0
Ddrc = &B01100000
'Timer0 = 1
Config Timer0 = Timer , Prescale = 1
Enable Timer0
Enable Interrupts
Cls
Do
Portc.6 = Not Portc.6
X = Timer0
Setfont Font8x8
Lcdat 4 , 18 , X
Waitms 500
Loop
Ontimer0:
Portc.5 = Not Portc.5
Return
$include "font8x8.font"
Ich habe das experementierboard von easyavr5 und da sind alle ausgänge an einer led angeschlossen. so sehe ich auch was die ausgänge machen.
die led in der loop-schleife blinkt wie erwatret immer im 500ms takt, das ist die von portc.6.
die von portc.5 bleibt tot.
Berechtigungen
- Neue Themen erstellen: Nein
- Themen beantworten: Nein
- Anhänge hochladen: Nein
- Beiträge bearbeiten: Nein
-
Foren-Regeln
Lesezeichen