logo_300logo_300logo_300logo_300
  • Computer
    • Commodore
      • Articoli Commodore
      • Commodore64
      • Commodore128
    • Sinclair
      • Articoli Sinclair
      • ZX80
      • Timex 2068
      • ZX Spectrum
      • ZX Spectrum 128K
    • Enterprise 64-128
    • Emulatori
      • A500 mini
      • The C64
    • Tandy
      • Tandy CoCo 2
    • Mattel
      • Aquarius
  • Console
    • Nintendo NES
    • Atari
  • FLASHCARTS
  • Utility
    • Alimentazioni Console e Computer
    • Attrezzatura
    • ROM e Adattatori
    • Bootloader Arduino con S7
    • Dram Tester
    • Sprite C64
  • MiSTer FPGA
  • Contatti
  • Donazione
Language
  • en_GB
  • it_IT
✕

Albero di Natale per C64

  • Home
  • Senza categoria
  • Albero di Natale per C64
Commodore 2000K
25 Dicembre 2021
CDI 450 TimeKeeper fix
16 Gennaio 2022
Pubblicato da Mirco G il 25 Dicembre 2021
Categorie
  • Senza categoria
Tags
  • albero di natale
  • christmas tree
  • Commodore
  • led
  • porta utente
  • user port

Buon Natale retrofixer!

Avete capito bene, oggi costruiamo un albero di Natale per C64, tranquilli non è difficile ed ora vediamo come fare.

Credo che sappiate tutti che il Commodore 64 ha una porta utente e questa ha una serie di pin collegati con il CIA che possiamo gestire come ingressi o uscite. Sfrutteremo quesi pin per collegare 8 led e farli accendere direttamente dal computer.
Era una macchina fantastica il 64, aveva tante risorse ad un ottimo prezzo, non era solo una macchina da gioco!.

Diamo uno sguardo allo schema.

Questo è molto semplice, troviamo la porta utente del C64 dove sono collegati solo il +5V il GND e 8 pin I/O.

I pin di I/O sono connessi ai led tramite una resistenza da 1K, la resistenza è molto alta e i led funzionerebbero meglio con una da 470ohm ma il C64 non ha a disposizione molta corrente e per non sovraccaricarlo è meglio non esegerare!.
Se volessimo più potenza dovremmo utilizzare dei transistor ed alimentare la scheda esternamente.

I connettori J1,J2 servono solo per poter separare la parte connettore da quella con il corpo dell’albero e le due connessioni sono state messe solo per poter fare un unico pcb senza dover pagarne 2 differenti.
Già, alcuni produttori di pcb se si fanno più schemi sullo stesso stampato lo considerano come diverso e c’è una maggiorazione!.

Come si può vedere qui a fianco, l’alberello è orientabile rispetto al connettore.

Ma se lo collego che succede?!

Nulla, se non scriviamo 2 righe sul nostro C64/128 per impostare la porta utente questi led rimarranno in uno stato idefinito, cioè potrebbero rimanere un pò accesi o spenti, dipende da cosa c’è impostato sul registro del CIA.

LET'S
GO
TO
CODE

Questo è un semplice programma per accendere solo il primo led della porta:

				
					10 POKE 56579,255: REM IMPOSTA TUTTE LE 8 PORTE COME USCITA
20 POKE 56577,1:REM SETTA IL BIT0 DELLA PORTA UTENTE (ACCENDE IL PRIMO LED)
				
			

Semplice no?! Ora spazio alla fantasia e creiamo noi gli effetti da visualizzare sul nostro albero di Natale!

Nel video del Commodore 2000K alla fine c’è la parte della costruzione di questo circuito, di seguiro il codice per fare rincorrere i led.
In un prossimo video mostrerò qualche alrto effetto.

 

				
					10 POKE 56579,255
20 FOR X=0 TO 7
30 POKE 56577,2^X
40 NEXT X
50 GOTO 20
				
			

Qui potete scaricare il programma per C64 con 10 effetti per l’albero

Download

Istruzioni:

All’avvio la porta utente viene resettata e le luci dell’albero sono spente.
Premendo un tasto da 0 a 9 si può eseguire un’animazione.
Per cambiare effetto occorre prima uscire dal programma selezionato tramite il tasto <- (freccia sinistra)

Iscrivetevi al canale per aiutarmi a creare nuovi contenuti, commentate se vi piacciono questi video e magari suggerite cosa vi piacerebbe vedere di nuovo. Grazie a tutti e auguri per queste feste.

Condividi
0
Mirco G
Mirco G
Smanettore tuttofare

post simili

30 Gennaio 2023

ZX Spectrum +2 audio-video mod


Leggi altro
28 Gennaio 2023

ZX Spectrum +2A audio-video mod


Leggi altro
29 Ottobre 2022

Grillo Parlante


Leggi altro

Lascia un commento Annulla risposta

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *

Questo sito usa Akismet per ridurre lo spam. Scopri come i tuoi dati vengono elaborati.

logo
RETRO FIXER ©2021 Tutti i marchi riportati appartengono ai legittimi proprietari.
Cookie Policy - Privacy Policy
Language
  • en_GB
  • it_IT
  • support@retrofixer.it
Usiamo i cookies strettamente necessari per garantire una esperienza ottimale nella navigazione del sito. Cliccando su "Accetta tutto", ci consenti di usare tutti i cookies. Puoi sempre rivedere il consenso cliccando su Cookie settings.
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccetta tutto - Accept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Sempre abilitato
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
BiscottoDurataDescrizione
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
ACCETTA E SALVA
Offerto da CookieYes Logo