Tips for PCB and Custom ASIC design

Tips for 2nd version PCB

 
 

Tips for PAD design: use Schmitt trigger to avoid noise in digital PADs.

 
 

Tips for shiftReg design:

  1. Make all '0' a valid state for testing.
  2. Add asynchronized
    reset to at least possibly set all shiftReg to all '0' state.

Tips for long shiftReg design

 
 

Reminder: for robust testing process

[+/-] Read More...

Altium Designer Tips Part 1

I start with Altium Designer 14. Try to play with it. Watched some official videos for starter. And a good tutorial from Michael V. Stapleton (links here https://www.ece.ufl.edu/content/altium-designer-video-tutorials ) and more on Youtube.
I will go with what I come up with and the solution I found hope it is somewhat intuitive and straight forward.

  • I want to define my own schematic symbol and footprint.
    Very easy to google for a good tutorial. I will not do that. Tips only!
    1. Open the correct panel/Toolbar!!! Altium is smart or not so smart in change the menu and toolbars with context or mode. Because the menu and toolbar change automatically but some time not so smart as it seems to be. Look around right bottom corner is generally a good practice when you don't have what you expected. For example SCH/schematic library, System/message, and so on.
    2. you can copy the footprint from the libraries provided by Altium. Then modify for your own use.
  • I want to redefine the board shape. But couldn't have the same menu as in the tutorials.
    That's because it is not in the right MODE.
    1. Altium 14 has different Modes, press 1, 2, or 3 to change between them. Or do it in the View menu.
    2. In Board planning mode, you will be able to do the board shape change. (shortcut: press 1)
    3. press 2 for normal editing mode, and press 3 for 3D mode.
  • I want to do polygon pour on the PCB.
    But got nothing done after close the polygon I have drawn. What THE FXXX.
    1. remember to check the polygon pour popup and check the "is poured" check box.
    2. Or you can selected polygon you want to pour on and change the property "is poured" to true.
    3.Polygon Pour Manager is also your friend: Tools » Polygon Pours » Polygon Manager


More tips from http://www.johnstowers.co.nz/blog/pages/altium-designer-tips.html

Altium Designer Tips by John Stowers.

Note [PCB+SCH] means command is available in PCB and Schematic mode, [PCB] means it is only available in the PCB editor. View » Desktop Layouts » descrives navigating the _Viewmenu.

You Favorite Keyboard Shortcuts

  • [PCB+SCH] Space to rotate components, change routing orientation
  • [PCB+SCH] Tab to change properties of the component you are placing
  • [PCB+SCH] Page Up/Down zooms in and out of the design
  • [PCB+SCH] Ctrl+Mousewheel zooms in/out
  • [PCB+SCH] Shift+Mousewheel pans left/right
  • [PCB+SCH] Hold Shift while dragging, makes Altium pan faster.
  • [PCB] Ctrl+D Snaps components to the grid, making it easier to align them. If you move multiple components at once, the will probbably result in the being all off the grid.
  • [PCB] Ctrl+Click on a net highlights everything connected to that net
  • [PCB] Q switches between metric and imperial units
  • [PCB] P open the place menu, P __» __T starts the interactive routing tool
  • [PCB] +/- change the routing layer, inserting a via in accordance with your current design rules.
  • [PCB] Ctrl+M measures the distance between two points
  • [PCB] L brings up the layer dialog for showing and hiding the different board layers

General Environment Tips

  • You can reposition all of the Altium panels, windows, etc. After you have it the way you like save it. View » Desktop Layouts » Save Layout. If you mess it up, reset to the default layoutView » Desktop Layouts » Default
  • Learn the keyboard shortcuts.
  • Cross probing is the process of selecting a component in either the schematic, or PCB editor and Altium will locate and/or select their PCB or Schematic counterparts. The easiest way to do this is to use Tools » Cross Probe and select the relevant component.
  • The inspector is the way to edit the same parameters on multiple components simultaneously, for example, you would use the inspector to change the footprint on all your resistors.
    • Ensure the inspector panel is visible in SCH/PCB. View » Workspace Panels » SCH/PCB »SCH/PCB Inspector
  • The inspector requires the components you wish to modify be selected. The easiest way to select multiple components is to start by Finding Similar objects.
    • Right click on one of the components you wish to modify, select Find Similar
    • In the window which pops up, change Any to Same on fields describing those components you wish to select.
    • Ensure Run Inspector is ticked and click OK.
    • The Inspector panel will now feature a number of fields which you may edit. Changes to these fields will be applied to all selected components.
  • Use The Help
    • [PCB] Ctrl + F1 while moving/routing a component will show you relevant key strokes
    • [PCB+SCH] F1 over an object/panel will show you relevant help
  • Use The Design Rules
    • From the PCB select Design » Rules. You should set rules in accordance with the capabilities of the manufacturer who will be making the PCB. At a minimum, ensure there are sensible values for the Routing » Width and Electrical » Clearance rules.

PCB Routing Tips

  • If you are overwhelmed by the number of connections when routing a PCB, and you intend to pour a ground plane, you should hide the GND net. View » Connections » Hide Net
  • If your board features a few polygon planes, such as ground planes, it is easier to manage them through Tools » Polygon Pours » Polygon Manager. Multiple pours on many layers slow down Altium and make routing hard. Shelve polygons to alleviate this.
  • If you become overwhelmed by the complexity of components on multiple layers, try single layer mode, Shift+S (which hides everything except that on the current layer).

Schematic Tips

  • Give the nets meaningful names (these names will appear in the PCB document and this will aid placement and routing)
  • When you add a new component, give it a designator that is not currently in use. The easiest way to do this is use the Tools » Annotate » Update Changes List » Accept and Create ECO. However be careful, if you are deleting one component, and adding another, with the same designator Altium can get confused.
  • When a component pin, port or power port is butted up to a pin of another component it makes an electrical connection. Using the command Edit » Move » Drag, or holding Ctrl when clicking and dragging, and moving either of the objects a wire is automatically placed between the objects

Those Oh My God What Have I Done Moments

  • OMG I can't click on anything and all the components are grayed out You probably have a mask set. Clear the mask by selecting Clear in the bottom right corner of the window.
  • The most common reason for being unable to import changes from the schematic editor to the PCB is because you have forgotten to give components a valid designator (i.e. it still is suffixed with a ?), or the footprint for a component can not be found.
  • When you import changes from the schematic editor to the PCB you will often see Failed to Match .... Components Using Unique Identifiers. Normally this is because you have copy and pasted components, moving them between sheets for example. In this case the warning is harmless (you should make it go away by matching the SCH and PCB components in Project »Component Links window). It can however be a sign that you have made a mistake in the schematic (see explanation above).

[+/-] Read More...

ssh自动输入密码登录服务器/ssh免输入密码登录/非交互ssh 密码验证

[+/-] Read More...

读入各种文本文件到Matlab

function [data]=distilldata_eight(infile)
%功能说明:
%将保存数据的原始文件中的数值数据读入到一个data变量中(自动判断数据行)
%使用说明:
% infile——原始数据文件名;
% data=数据变量

tmpfile='tmp2.mat';

fidin=fopen(infile,'r'); % 打开原始数据文件(.list)

fidtmp=fopen(tmpfile,'w'); % 创建保存数据文件(不含说明文字)

while ~feof(fidin) % 判断是否为文件末尾
tline=fgetl(fidin); % 从文件读入一行文本(不含回车键)
if ~isempty(tline) % 判断是否空行
str = '[^0-9 | \. | \- | \s | e | E]'; %正则表达式为:该行中是否包含除 - . E e 数字 和 空白字符 外的其他字符
start = regexp(tline,str, 'once');
if isempty(start)
fprintf(fidtmp,'%s\n',tline);
end
end
end

fclose(fidin);

fclose(fidtmp);

data=textread(tmpfile);

delete(tmpfile)

in reference to:

"4. 上述各种文件格式、类型自动识别问题:可以利用正则表达式来处理,使之通用性较强。例如使用以下代码可以自动处理上面提到了例1到例5各种情形,不过由于存在自动判断,对某些例子(如例1)效率自然要低一点,而对于另外的例子(如例3、例5)效率估计要高一点(少用了一个循环)。 CODE: function [data]=distilldata_eight(infile) %功能说明: %将保存数据的原始文件中的数值数据读入到一个data变量中(自动判断数据行) %使用说明: % infile——原始数据文件名; % data=数据变量"
- 使用文本文件(.txt)进行数据存取的技巧总结(相当的经典) - Matlab 基础问题 - Matlab中文论坛 | Simulink 论坛 | Matlab下载 | Matlab资料 | Matlab视频 | Matlab图像处理 | Matlab神经网络 | Matlab数学运算 - Powered by Discuz! (view on Google Sidewiki)

[+/-] Read More...

Outlook2010 IMAP new message alert issue...

Outlook 2010接收IMAP邮件始终不提醒你有新邮件到达,其原因无非是它只提醒默认收件箱。
而IMAP的数据文件是不能设置为默认的。
那么怎么解决呢?
具体操作:
1.文件 – 信息 – 账户信息 – 管理规则和通知
2.新建规则:
选择“对我接收的邮件应用规则”
下一步
在“选择条件”处根据自己的情况勾选,不会的直接点下一步
选择:
播放声音(设置声音文件)
显示桌面通知
另外还有一个“在‘新邮件通知’窗口显示邮件 特定消息”
可以在新邮件到达时弹出窗口,可以试一下再决定要不要。

in reference to:

"Outlook 2010接收IMAP邮件始终不提醒你有新邮件到达,其原因无非是它只提醒默认收件箱。 而IMAP的数据文件是不能设置为默认的。 那么怎么解决呢? 具体操作: 1.文件 – 信息 – 账户信息 – 管理规则和通知 2.新建规则: 选择“对我接收的邮件应用规则” 下一步 在“选择条件”处根据自己的情况勾选,不会的直接点下一步 选择: 播放声音(设置声音文件) 显示桌面通知 另外还有一个“在‘新邮件通知’窗口显示邮件 特定消息” 可以在新邮件到达时弹出窗口,可以试一下再决定要不要。"
- Outlook 2010 对IMAP新邮件到达不提醒不通知的解决办法 - 白色流沙的日志 - 网易博客 (view on Google Sidewiki)

[+/-] Read More...

opamp基础问题

[转]几道analog面试题

都是些纯技术的问题,关于op-amp的。

1. 比较三种结构:a. 2-stage op-amp (active load, class-A output stage); b.
telescopic op-amp; 3. folded-cascode op-amp。3者各有什么优缺点。

2. 设计普通的2-stage op-amp,是第一级还是第二级的gain比较的大?为什么?

3. 普通的2-stage op-amp,如果没有任何freq compensation,那么那个是dominant
pole?哪个是secondary pole。请解释为什么会是这样(就是说,你要是说第一级输出
是dominant,那么好,解释一下为什么它是dominant;反之亦然。)

in reference to: [转]几道analog面试题(页 1) - Analog/RF IC 设计 - Analog/RF IC 设计讨论 - 中国电子顶级开发网 国内最顶级的开发者论坛---FPGA论坛|ASIC论坛|DSP论坛|ARM论坛|单片机论坛|MCU论坛|电子电路|嵌入式论坛|开发设计论坛 - Powered by Discuz! Archiver (view on Google Sidewiki)

[+/-] Read More...

2010年褪墨上最不能错过的文章

人生规划和GTD——“知”、“得”与“合”
你会休息吗?掌握最高效的休息方式
我们究竟为什么不开心?(上)/(下)
男人二十岁后应该学会的习惯
面试前需考虑的25个问题
低效能人士的七个坏习惯
如何改正拖拉的习惯
文件归档的学问
如何简化你的生活
学会自律系列总结

in reference to:

"人生规划和GTD——“知”、“得”与“合” 你会休息吗?掌握最高效的休息方式 我们究竟为什么不开心?(上)/(下) 男人二十岁后应该学会的习惯 面试前需考虑的25个问题 低效能人士的七个坏习惯 如何改正拖拉的习惯 文件归档的学问 如何简化你的生活 学会自律系列总结"
- 2010年褪墨上不能错过的35篇好文 - 褪墨 (view on Google Sidewiki)

[+/-] Read More...