On 15.08.2016 20:57, Benjamin Larsson wrote:
> On 08/15/2016 08:01 PM, Philipp Klaus Krause wrote:
>> Hello,
>>
>> I wrote my first little mcs51 program today, for the Cypress FX2LP. But
>> I encountered a problem: Timer 1 runs too fast. When I set up Timer 0
>> and Timer 1 the same, Timer 1 runs about 4 times faster.
>>
> 
> I have very little experience with the FX2 and then only with the Sigrok 
> fx2lafw.
> 
> http://sigrok.org/gitweb/?p=sigrok-firmware-fx2lafw.git;a=tree
> 
> In my code I used timer 2 and in the comments I saw that self sampling 
> of this pin only worked well up to around 8MHz of gpif data. So load in 
> one hardware block affected timer 2. I remember that increasing the cpu 
> clock mitigated the effect.
> 
> MvH
> Benjamin Larsson
> 

I tried the 48 Mhz clock (was using 12 Mhz before). Now all timers run 4
times faster, but timer 1 still runs faster than timer 0.

Philipp


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to