You are here

Running out of UDBs too early | Cypress Semiconductor

Running out of UDBs too early

Summary: 2 Replies, Latest post by hli on 09 Jan 2014 05:14 PM PST
Verified Answers: 0
Last post
Log in to post new comments.
tsiflana's picture
1 post

I'm trying to fit as much as I possibly can into a PSoC4 - I want 2 quadrature decoders, 6 pwm outputs, and 3 serial modules

By putting two of the serials in to SCBs and the 2 quadrature decoders + 2 PWMs into TCPWM blocks, it just leaves enough for the remaining serial and PWMs in UDBa

I can put in 1 x 8 bit double output PWM modules with no trouble, giving me a total of 4 pwm outputs. When I build, this reports enough resources remaining to add another PWM. However, when I try, it says "5 UDBs required" :(

Can any one shed any light on this?

user_1377889's picture
9281 posts

When you provide us with a "Workspace Bundle" we all can compile and check what's going on, with so few information any presumptions are pure guesswork.



user_78878863's picture
2553 posts

According to the data sheet, a 8bit-PWM with two outputs needs 9 macro cells. Since one UDB has 4 MCs, this PWM will consume 3 UDBs. Two of them might be shared with other components, though. But you won't get two of them, since this would require 5 UDBs (because you need 18MCs).

Log in to post new comments.