Problem se zapojenim PIC-4026-2003-7seg

n11444@seznam.cz n11444@seznam.cz
Čtvrtek Leden 26 13:08:18 CET 2006


No a jaky je tam krystal ?


----- Original Message -----
From: "Milan Horák" <stranger@tiscali.cz>
To: "HW-news" <hw-list@list.hw.cz>
Sent: Thursday, January 26, 2006 9:53 AM
Subject: Re: Problem se zapojenim PIC-4026-2003-7seg


Zdravim,

chapu, ze se do toho nikomu moc nechce, ale pro mne je tenhle problem
dost akutni a uz nevim kudy kam. A jeste ke vsemu jsem zacatecnik. Byl
by nekdo z Vas ochoten mi pomoci s jeho resenim treba i za nejakou tu
korunu? Odpovedi kdyztak prosim soukrome, at nezatezujeme konferenci.

Dekuji Milan

Milan Horák wrote:
> Zdravim,
>
> uz asi tyden marne patram, kde by mohla byt chyba.
> Zapojeni je v priloze, program v textu zpravy.
>
> 1.Problem - pocita to jen kdyz je RES na 4026 odpojeny od PIC
>         (obcas se to svihne a pripojeni RES funguje jako
> reset                 celeho zarizeni - to muze ale byt kontaktnim polem)
> 2.Problem - pocita to neuveritelne rychle, z toho co jsem vykoukal
> na                 netu (cheapic), by to melo pocitat rychlosti
> asi              1cyklus/4sec, je to ale spis 40cyklu/sec.
>
> Mohl by mne nekdo nakopnout ... spravnym smerem.
>
> Diky, Milan.
>
> Program:
>
> ;**********************************************************************
> ;   Counts from 0 to 9                              *
> ;                                                                     *
> ;   Pinout:    A0 - CLK                                              *
> ;           A1 - Counter Reset (default L)                        *
> ;            A2 - Display Enable (default L)                       *
> ;**********************************************************************
>     list      p=16F84A      ; list directive to define processor
>     #include <P16F84A.inc>  ; processor specific variable definitions
>     __CONFIG   _CP_OFF & _WDT_ON & _PWRTE_ON & _XT_OSC
>         CBLOCK H'C'
>             COUNTER        ; cycle counter
>         ENDC
> main
>         BCF STATUS,RP0
>         CLRF PORTA        ; all port A pins set to 0
>         BSF STATUS,RP0
>             CLRF TRISA        ; all port A pins are now outputs
>         MOVLW B'00000111'    ; prescalar assigned to TMR0 and set 1:256
>         MOVWF OPTION_REG
>         BCF STATUS,RP0
>          MOVLW B'00000010'    ; display off and counter reset
>         MOVWF PORTA
> again:         MOVLW D'61'
>         MOVWF COUNTER
>         CLRF PORTA
>         INCF PORTA
>         MOVLW B'00000100'    ; display on
>         MOVWF PORTA
> loop:        BTFSS INTCON,T0IF    ; wait 4 sec
>         GOTO $ -1
>         BCF INTCON,T0IF
>         DECFSZ COUNTER,F
>         GOTO loop
>         CLRF PORTA        ; display off
>         GOTO again
>         END
>
> ------------------------------------------------------------------------
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> HW-list mailing list  -  sponsored by www.HW.cz
> Hw-list@list.hw.cz
> http://list.hw.cz/mailman/listinfo/hw-list
_______________________________________________
HW-list mailing list  -  sponsored by www.HW.cz
Hw-list@list.hw.cz
http://list.hw.cz/mailman/listinfo/hw-list


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.14.23/240 - Release Date: 25.1.2006





Další informace o konferenci Hw-list