Limiting main circuit of LED driver